/** * ConfigService constructor. * * @param $objectPath * @param \CodeMine\CommandQueryGenerator\Service\DirectoryService $directoryService */ public function __construct($objectPath, DirectoryService $directoryService) { $this->objectPath = $objectPath; $this->directoryService = $directoryService; $configDir = $this->directoryService->getPathForAutoloadConfigs(); $confPath = $configDir . DIRECTORY_SEPARATOR . self::CONFIG_NAME; $this->confPath = $confPath; }