public function __construct($type = self::CONTAINER, $env = '') { if (!empty($env)) { $env .= '.'; } parent::__construct($env . $type . '.php', FileLocator::VAR_DIR); }
/** * Constructor. * * @param ModuleManager $moduleManager A ModuleManager instance * @param null|string $path The path the global resource directory * @param array $paths An array of paths where to look for resources */ public function __construct(ModuleManager $moduleManager, $path = null, array $paths = array()) { $this->moduleManager = $moduleManager; if (null !== $path) { $this->path = $path; $paths[] = $path; } parent::__construct($paths); }
public function __construct($fileName = self::DEFINITIONS_FILE) { parent::__construct($fileName, FileLocator::DIST_DIR); }