PropelBundle.php 506 B

12345678910111213141516171819
  1. <?php
  2. namespace Symfony\Bundle\PropelBundle;
  3. use Symfony\Component\HttpKernel\Bundle\Bundle;
  4. class PropelBundle extends Bundle
  5. {
  6. public function boot()
  7. {
  8. require_once $this->container->getParameter('propel.path').'/runtime/lib/Propel.php';
  9. if (0 === strncasecmp(PHP_SAPI, 'cli', 3)) {
  10. set_include_path($this->container->getParameter('propel.phing_path').'/classes'.PATH_SEPARATOR.get_include_path());
  11. }
  12. $this->container->getPropelService();
  13. }
  14. }