Created
December 7, 2018 04:03
-
-
Save kerasai/b9afa9842eeb2d635476400b500931f7 to your computer and use it in GitHub Desktop.
Create a Symfony Container
This file contains hidden or 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 | |
use Symfony\Component\Config\FileLocator; | |
use Symfony\Component\DependencyInjection\ContainerBuilder; | |
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; | |
// Build the container. | |
$container = new ContainerBuilder(); | |
$loader = new YamlFileLoader($container, new FileLocator(__DIR__)); | |
$loader->load('services.yml'); | |
$container->compile(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment