Created
September 18, 2011 16:11
-
-
Save pjedrzejewski/1225223 to your computer and use it in GitHub Desktop.
Symfony2 configuration processor, gist #3.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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