PropelBridge
in package
Propel Autoloader Bridge — boot Propel WITHOUT Symfony.
Initializes the Propel 1.4 ORM and registers autoloaders for Qubit model classes so that code like QubitInformationObject::getById($id) works in the Heratio (Laravel) context without booting Symfony at all.
Also registers:
- sfCoreAutoload: all sf* classes from vendor/symfony/lib/
- Zend autoloader: Zend_Acl_* classes from qbAclPlugin
- Shims: sfException (aliased to \Exception)
Usage: PropelBridge::boot('/usr/share/nginx/archive');
After boot(), Propel::getConnection() works and all Qubit* / Base* / TableMap / sf / Zend_* classes resolve via registered autoloaders.
Table of Contents
Methods
- boot() : void
- Boot Propel from the AtoM root directory.
- isBooted() : bool
- Check whether PropelBridge has been booted.
Methods
boot()
Boot Propel from the AtoM root directory.
public
static boot(string $rootDir) : void
Safe to call multiple times — subsequent calls are no-ops.
Parameters
- $rootDir : string
isBooted()
Check whether PropelBridge has been booted.
public
static isBooted() : bool