Ajoute library/ dans la config - include_path - de composer
This commit is contained in:
parent
f1f707fb08
commit
6e708f1846
@ -4,6 +4,7 @@
|
||||
"require": {
|
||||
"zendframework/zendframework1": "^1.12"
|
||||
},
|
||||
"include-path": ["library/"],
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
"application/",
|
||||
|
3
composer.lock
generated
3
composer.lock
generated
@ -4,7 +4,8 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"hash": "35338322d141bf3c6e016c51c91c05b4",
|
||||
"hash": "1bbbaa2f28e815c026b865f1484d8d52",
|
||||
"content-hash": "edbc67aa513e9f6521d39fb2bb6d3784",
|
||||
"packages": [
|
||||
{
|
||||
"name": "zendframework/zendframework1",
|
||||
|
@ -7,12 +7,7 @@ defined('APPLICATION_PATH')
|
||||
defined('APPLICATION_ENV')
|
||||
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
|
||||
|
||||
// --- Ensure library/ is on include_path
|
||||
set_include_path(implode(PATH_SEPARATOR, array(
|
||||
realpath(APPLICATION_PATH . '/../library'),
|
||||
get_include_path(),
|
||||
)));
|
||||
|
||||
// --- Composer autoload
|
||||
require_once realpath(__DIR__ . '/../vendor/autoload.php');
|
||||
|
||||
// --- Create application, bootstrap, and run
|
||||
|
@ -8,12 +8,7 @@ defined('APPLICATION_PATH')
|
||||
defined('APPLICATION_ENV')
|
||||
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
|
||||
|
||||
// --- Ensure library/ is on include_path
|
||||
set_include_path(implode(PATH_SEPARATOR, array(
|
||||
realpath(APPLICATION_PATH . '/../../library'),
|
||||
get_include_path(),
|
||||
)));
|
||||
|
||||
// --- Composer autoload
|
||||
require_once realpath(__DIR__ . '/../../vendor/autoload.php');
|
||||
|
||||
// --- Create application, bootstrap, and run
|
||||
|
@ -9,12 +9,7 @@ defined('APPLICATION_PATH')
|
||||
defined('APPLICATION_ENV')
|
||||
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
|
||||
|
||||
// --- Ensure library/ is on include_path
|
||||
set_include_path(implode(PATH_SEPARATOR, array(
|
||||
realpath(APPLICATION_PATH . '/../../library'),
|
||||
get_include_path(),
|
||||
)));
|
||||
|
||||
// --- Composer autoload
|
||||
require_once realpath(__DIR__ . '/../../vendor/autoload.php');
|
||||
|
||||
// --- Create application, bootstrap, and run
|
||||
|
Loading…
Reference in New Issue
Block a user