Skip to content

Instantly share code, notes, and snippets.

@pjedrzejewski
Created September 18, 2011 16:11
Show Gist options
  • Save pjedrzejewski/1225223 to your computer and use it in GitHub Desktop.
Save pjedrzejewski/1225223 to your computer and use it in GitHub Desktop.
Symfony2 configuration processor, gist #3.
<?php
namespace Sylius\Bundle\ThemingBundle\Packager;
use Symfony\Component\Config\Definition\Processor;
use Symfony\Component\Yaml\Yaml;
// ...
$processor = new Processor();
$this->configuration = $processor->processConfiguration(new Configuration, Yaml::parse(file_get_contents('/path/to/theme/theme.yml')));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment