예제 #1
0
 /**
  * @return array
  */
 function build()
 {
     $config = [];
     foreach ($this->fileSystem->glob($this->mask) as $filePath) {
         $config = array_merge($config, $this->fileSystem->includeFile($filePath));
     }
     return $config;
 }
예제 #2
0
 /**
  * @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;
 }
예제 #3
0
 /**
  * @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;
 }
예제 #4
0
 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);
     }
 }
예제 #5
0
 private function getRealPath(array $elements)
 {
     return $this->fileSystem->realPath($this->getPath($elements));
 }
예제 #6
0
 /**
  * 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);
 }
예제 #7
0
 /**
  * Gets container configuration data from file.
  *
  * @return array Container configuration data.
  */
 public function getConfiguration()
 {
     return unserialize($this->filesystem->getFileContent($this->fileName));
 }
예제 #8
0
 function getBody()
 {
     return $this->fileSystem->getFileContent("php://input");
 }
예제 #9
0
파일: AppPath.php 프로젝트: conpago/conpago
 /**
  * @return IPath
  */
 private function getPath(array $elements)
 {
     $path = implode(DIRECTORY_SEPARATOR, $elements);
     $realPath = $this->fileSystem->realPath($path);
     return new Path($path, $realPath);
 }
예제 #10
0
 function getConfiguration()
 {
     return $this->filesystem->includeFile($this->fileName);
 }
예제 #11
0
파일: Request.php 프로젝트: conpago/conpago
 public function getBody()
 {
     return $this->fileSystem->getFileContent('php://input');
 }