Refactored bundle class
This commit is contained in:
parent
7cd70d9cb9
commit
e9e476a784
|
@ -3,6 +3,7 @@
|
|||
namespace Symfony\Bundle\PropelBundle;
|
||||
|
||||
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
|
||||
class PropelBundle extends Bundle
|
||||
{
|
||||
|
@ -13,7 +14,28 @@ class PropelBundle extends Bundle
|
|||
if (0 === strncasecmp(PHP_SAPI, 'cli', 3)) {
|
||||
set_include_path($this->container->getParameter('propel.phing_path').'/classes'.PATH_SEPARATOR.get_include_path());
|
||||
}
|
||||
}
|
||||
|
||||
// $this->container->getPropelService();
|
||||
public function registerExtensions(ContainerBuilder $container)
|
||||
{
|
||||
$this->initReflection();
|
||||
|
||||
parent::registerExtensions($container);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getNamespace()
|
||||
{
|
||||
return __NAMESPACE__;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getPath()
|
||||
{
|
||||
return strtr(__DIR__, '\\', '/');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue