| this application from the configuration files. The files are easily | separated by their concerns so they do not become really crowded. | */ $app['config'] = new \Hubzero\Config\Repository($client); /* |-------------------------------------------------------------------------- | Register The Core Service Providers |-------------------------------------------------------------------------- | | Register all of the core pieces of the framework including session, | caching, and more. | */ $providers = PATH_CORE . DS . 'bootstrap' . DS . $client . DS . 'services.php'; $services = file_exists($providers) ? require $providers : array(); foreach ($services as $service) { $app->register($service); } /* |-------------------------------------------------------------------------- | Load The Aliases |-------------------------------------------------------------------------- | | The alias loader is responsible for lazy loading the class aliases setup | for the application. | */ $aliases = PATH_CORE . DS . 'bootstrap' . DS . $client . DS . 'aliases.php'; $app->registerBaseFacades(file_exists($aliases) ? require $aliases : array());
| Register all of the core pieces of the framework. | */ $providers = PATH_CORE . DS . 'bootstrap' . DS . 'cli' . DS . 'services.php'; $services = file_exists($providers) ? require $providers : array(); foreach ($services as $service) { $app->register($service); } /* |-------------------------------------------------------------------------- | Load The Aliases |-------------------------------------------------------------------------- | | The alias loader is responsible for lazy loading the class aliases setup | for the application. | */ $facades = PATH_CORE . DS . 'bootstrap' . DS . 'cli' . DS . 'aliases.php'; $aliases = file_exists($facades) ? require $facades : array(); $app->registerBaseFacades($aliases); /* |-------------------------------------------------------------------------- | Return The Application |-------------------------------------------------------------------------- | | This script returns the application instance. The instance is given to | the calling script so we can separate the building of the instances | from the actual running of the application and sending responses. | */ return $app;