Created
January 28, 2011 18:46
-
-
Save rande/800724 to your computer and use it in GitHub Desktop.
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 | |
/* | |
* 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