public function build(ContainerBuilder $container)
    {
        parent::build($container);

        $configFile = new SplFileInfo(
            (new FileLocator($this->getPath().'/Resources/config'))
                ->locate('synapse.yml'),
            '',
            ''
        );

        $container->addCompilerPass(new CompilerPass(
            Yaml::parse($configFile->getContents())
        ));
        $container->addResource(new FileResource(
            $configFile->getRealPath()
        ));
    }