/** * Constructor * * @param array $config * @param ConfigurationResolver $resolver * @param EntityHierarchyProvider $entityHierarchyProvider * @param TranslatorInterface $translator */ public function __construct(array $config, ConfigurationResolver $resolver, EntityHierarchyProvider $entityHierarchyProvider, TranslatorInterface $translator) { $resolver->resolve($config); $this->config = ConfigurationObject::create($config); $this->entityHierarchyProvider = $entityHierarchyProvider; $this->translator = $translator; }
/** * Constructor * * @param array $config * @param SystemAwareResolver $resolver */ public function __construct(array $config, SystemAwareResolver $resolver) { $resolver->resolve($config); $this->config = ConfigurationObject::create($config['query-designer']); }