Load autoloader early so setup can use it
Also fixes a @include_once check that is now much easier.
This commit is contained in:
parent
1ca47d67d5
commit
4936b16bc1
@ -44,7 +44,9 @@ set_include_path(VENDOR_PATH . PATH_SEPARATOR . get_include_path());
|
||||
// Ensure library/ is on include_path
|
||||
set_include_path(LIB_PATH . PATH_SEPARATOR . get_include_path());
|
||||
|
||||
if (!@include_once(VENDOR_PATH . 'propel/propel1/runtime/lib/Propel.php'))
|
||||
require_once VENDOR_PATH . '/autoload.php';
|
||||
|
||||
if (!class_exists('Propel'))
|
||||
{
|
||||
die('Error: Propel not found. Did you install Airtime\'s third-party dependencies with composer? (Check the README.)');
|
||||
}
|
||||
|
||||
@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
require_once dirname(dirname( __DIR__)) . '/library/php-amqplib/amqp.inc';
|
||||
|
||||
/**
|
||||
* User: sourcefabric
|
||||
* Date: 02/12/14
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user