/** * @inheritdoc */ public function createEncoder(ContainerInterface $container, EncoderOptions $encoderOptions = null) { $encoder = new Encoder($this, $container, $encoderOptions); $encoder->setLogger($this->logger); return $encoder; }
/** * @test */ public function shouldUserCustomFactory() { $encoder = Encoder::instance(); $this->assertInstanceOf(Encoder::class, $encoder); }