Add the root directory of the project in the include path to make the override of propel's generator classes easier
This commit is contained in:
parent
ae65d873a6
commit
fd39223c7f
|
@ -20,7 +20,7 @@ class PropelBundle extends Bundle
|
||||||
require_once $this->container->getParameter('propel.path').'/runtime/lib/Propel.php';
|
require_once $this->container->getParameter('propel.path').'/runtime/lib/Propel.php';
|
||||||
|
|
||||||
if (0 === strncasecmp(PHP_SAPI, 'cli', 3)) {
|
if (0 === strncasecmp(PHP_SAPI, 'cli', 3)) {
|
||||||
set_include_path($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').'/classes'.PATH_SEPARATOR.get_include_path());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!\Propel::isInit()) {
|
if (!\Propel::isInit()) {
|
||||||
|
|
Loading…
Reference in a new issue