Skip to content

Commit

Permalink
Add phing_path directly to includ path to make it work with composer …
Browse files Browse the repository at this point in the history
…and pear package
  • Loading branch information
jaugustin committed Mar 7, 2012
1 parent 49598d1 commit b7b5592
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion PropelBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ 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('kernel.root_dir').'/..'.PATH_SEPARATOR.$this->container->getParameter('propel.phing_path').'/classes'.PATH_SEPARATOR.get_include_path());
set_include_path($this->container->getParameter('kernel.root_dir').'/..'.PATH_SEPARATOR.
$this->container->getParameter('propel.phing_path').PATH_SEPARATOR.
$this->container->getParameter('propel.phing_path').'/classes'.PATH_SEPARATOR.
get_include_path());
}

if (!\Propel::isInit()) {
Expand Down

0 comments on commit b7b5592

Please sign in to comment.