mirror of
https://github.com/KnpLabs/KnpMarkdownBundle.git
synced 2024-05-21 14:56:31 +02:00
34 lines
1 KiB
PHP
34 lines
1 KiB
PHP
<?php
|
|
|
|
namespace Knp\Bundle\MarkdownBundle\Tests\fixtures\app;
|
|
|
|
use Knp\Bundle\MarkdownBundle\KnpMarkdownBundle;
|
|
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
|
|
use Symfony\Component\Config\Loader\LoaderInterface;
|
|
use Symfony\Component\DependencyInjection\Alias;
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
use Symfony\Component\DependencyInjection\Reference;
|
|
use Symfony\Component\HttpKernel\Kernel;
|
|
|
|
class TestKernel extends Kernel
|
|
{
|
|
public function registerBundles()
|
|
{
|
|
return array(
|
|
new FrameworkBundle(),
|
|
new KnpMarkdownBundle(),
|
|
);
|
|
}
|
|
|
|
public function registerContainerConfiguration(LoaderInterface $loader)
|
|
{
|
|
$loader->load(function(ContainerBuilder $c) {
|
|
$c->loadFromExtension('framework', array(
|
|
'secret' => 'MarkdownTesting'
|
|
));
|
|
|
|
// add a public alias so we can fetch for testing
|
|
$c->setAlias('markdown.parser.parser_manager.public', new Alias('markdown.parser.parser_manager', true));
|
|
});
|
|
}
|
|
} |