process() публичный Метод

Process the data include/import statements. For example check the files in the include statement and parses those files and merges the result with the existing data.
public process ( Nelmio\Alice\ParserInterface $parser, string $file, array $data ) : array
$parser Nelmio\Alice\ParserInterface Parsed used to parse the files to include.
$file string File from which the data comes from.
$data array Parse result of the loaded file.
Результат array
Пример #1
0
 /**
  * @inheritdoc
  */
 public function parse(string $file) : array
 {
     try {
         $realPath = $this->fileLocator->locate($file);
     } catch (FileNotFoundException $exception) {
         throw InvalidArgumentExceptionFactory::createForFileCouldNotBeFound($file, 0, $exception);
     }
     if (array_key_exists($realPath, $this->cache)) {
         return $this->cache[$realPath];
     }
     $data = $this->parser->parse($realPath);
     if (array_key_exists('include', $data)) {
         $data = $this->includeProcessor->process($this, $file, $data);
     }
     $this->cache[$realPath] = $data;
     return $data;
 }