public function __construct(FactoryInterface $factory, $container) { $this->factory = $factory; $this->container = $container; }