37 lines
798 B
PHP
37 lines
798 B
PHP
<?php
|
|
|
|
namespace Symfony\Bundle\PropelBundle;
|
|
|
|
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
|
|
class PropelBundle extends Bundle
|
|
{
|
|
public function boot()
|
|
{
|
|
require_once $this->container->getParameter('propel.path').'/runtime/lib/Propel.php';
|
|
|
|
if (0 === strncasecmp(PHP_SAPI, 'cli', 3)) {
|
|
set_include_path($this->container->getParameter('propel.phing_path').'/classes'.PATH_SEPARATOR.get_include_path());
|
|
}
|
|
|
|
$this->container->get('propel');
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function getNamespace()
|
|
{
|
|
return __NAMESPACE__;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function getPath()
|
|
{
|
|
return strtr(__DIR__, '\\', '/');
|
|
}
|
|
}
|