/** * {@inheritDoc} * * Ignores everything but 'context' */ public function loadFile($file) { $context = $this->container->getParameter('kernel.context'); $config = array(); $yaml = Yaml::parse($file); foreach ($yaml as $key => $data) { if ('meta' == $key) { continue; } // context key if (Runtime::isContextMatch($key, $context)) { $config = Toolbox::arrayMergeRecursive($config, $data); } } die(var_dump(__FILE__, $yaml)); return $this->validate($config, $file); }