示例#1
0
文件: Factory.php 项目: reva2/jsonapi
 /**
  * @inheritdoc
  */
 public function createEncoder(ContainerInterface $container, EncoderOptions $encoderOptions = null)
 {
     $encoder = new Encoder($this, $container, $encoderOptions);
     $encoder->setLogger($this->logger);
     return $encoder;
 }
示例#2
0
 /**
  * @test
  */
 public function shouldUserCustomFactory()
 {
     $encoder = Encoder::instance();
     $this->assertInstanceOf(Encoder::class, $encoder);
 }