/** * @return array */ function build() { $config = []; foreach ($this->fileSystem->glob($this->mask) as $filePath) { $config = array_merge($config, $this->fileSystem->includeFile($filePath)); } return $config; }
/** * @return array */ function build() { $config = []; foreach ($this->fileSystem->glob($this->mask) as $filePath) { $config = array_merge($config, Yaml::parse($this->fileSystem->getFileContent($filePath))); } return $config; }
/** * @return array */ function build() { $config = []; foreach ($this->fileSystem->glob($this->mask) as $filePath) { $json_decoded_array = json_decode($this->fileSystem->getFileContent($filePath), true); $config = array_merge($config, $json_decoded_array); } return $config; }
protected function loadModules() { $moduleMask = implode(DIRECTORY_SEPARATOR, array($this->appPath->root(), "src", $this->contextName . "Module.php")); foreach ($this->fileSystem->glob($moduleMask) as $filePath) { /** @var IModule $class */ $class = $this->fileSystem->loadClass($filePath); $class->build($this->containerBuilder); } }
private function getRealPath(array $elements) { return $this->fileSystem->realPath($this->getPath($elements)); }
/** * Loads module class. * * @param string $filePath Path to module file. * * @return IModule Loaded module class instance. */ protected function loadModule($filePath) { return $this->fileSystem->loadClass($filePath); }
/** * Gets container configuration data from file. * * @return array Container configuration data. */ public function getConfiguration() { return unserialize($this->filesystem->getFileContent($this->fileName)); }
function getBody() { return $this->fileSystem->getFileContent("php://input"); }
/** * @return IPath */ private function getPath(array $elements) { $path = implode(DIRECTORY_SEPARATOR, $elements); $realPath = $this->fileSystem->realPath($path); return new Path($path, $realPath); }
function getConfiguration() { return $this->filesystem->includeFile($this->fileName); }
public function getBody() { return $this->fileSystem->getFileContent('php://input'); }