Пример #1
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;
 }
Пример #2
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;
 }
Пример #3
0
 function getBody()
 {
     return $this->fileSystem->getFileContent("php://input");
 }
Пример #4
0
 /**
  * Gets container configuration data from file.
  *
  * @return array Container configuration data.
  */
 public function getConfiguration()
 {
     return unserialize($this->filesystem->getFileContent($this->fileName));
 }
Пример #5
0
 public function getBody()
 {
     return $this->fileSystem->getFileContent('php://input');
 }