Skip to content

Instantly share code, notes, and snippets.

@rande
Created January 28, 2011 18:46
Show Gist options
  • Save rande/800724 to your computer and use it in GitHub Desktop.
Save rande/800724 to your computer and use it in GitHub Desktop.
<?php
/*
* This file is part of the Sonata project.
*
* (c) Thomas Rabaix <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\PageBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class SonataPageBundle extends Bundle
{
public function boot()
{
$this->container->get('event_dispatcher')->connect('core.response', array(
$this->container->get('page.manager'),
'filterReponse'
), -1);
}
/**
* {@inheritdoc}
*/
public function getNamespace()
{
return __NAMESPACE__;
}
/**
* {@inheritdoc}
*/
public function getPath()
{
return strtr(__DIR__, '\\', '/');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment