public function __construct(PropertyNamingStrategyInterface $namingStrategy) { parent::__construct($namingStrategy); if(defined('JSON_UNESCAPED_SLASHES')) { $this->setOptions(JSON_UNESCAPED_SLASHES); } }
public function __construct(PropertyNamingStrategyInterface $namingStrategy, EntityManager $entityManager) { parent::__construct($namingStrategy); $this->entityManager = $entityManager; }
/** * @param PropertyNamingStrategyInterface $propertyNamingStrategy * @param MetadataFactoryInterface $metadataFactory * @param $showVersionInfo */ public function __construct(PropertyNamingStrategyInterface $propertyNamingStrategy, MetadataFactoryInterface $metadataFactory, $showVersionInfo) { parent::__construct($propertyNamingStrategy); $this->metadataFactory = $metadataFactory; $this->showVersionInfo = $showVersionInfo; }