<?php

/*
|--------------------------------------------------------------------------
| Orchestra Library
|--------------------------------------------------------------------------
|
| Map Orchestra Library using PSR-0 standard namespace. 
*/

Autoloader::namespaces(array(
	'Orchestra\Model' => Bundle::path('orchestra').'models'.DS,
	'Orchestra'       => Bundle::path('orchestra').'libraries'.DS,
));

Autoloader::map(array(
	'Orchestra' => Bundle::path('orchestra').'orchestra'.EXT,
));

/*
|--------------------------------------------------------------------------
| Orchestra Dependencies
|--------------------------------------------------------------------------
|
| Add Orchestra helpers function and dependencies
*/

include_once Bundle::path('orchestra').'helpers'.EXT;
include_once Bundle::path('orchestra').'includes'.DS.'dependencies'.EXT;

/*
|--------------------------------------------------------------------------
| Orchestra Events Listener
|--------------------------------------------------------------------------
|
| Lets listen to when Orchestra bundle is started.
*/ 
Event::listen('laravel.done', function () 
{
	Orchestra\Core::shutdown();
});

Event::listen('orchestra.started: backend', function ()
{
	Orchestra\View::$theme = 'backend';
});

Orchestra\Core::start();
Orchestra\Core::asset();
<?php

/*
|--------------------------------------------------------------------------
| Orchestra Library
|--------------------------------------------------------------------------
|
| Map Orchestra Library using PSR-0 standard namespace. 
|
*/

Autoloader::namespaces(array(
	'Orchestra\Model' => Bundle::path('orchestra').'models'.DS,
	'Orchestra'       => Bundle::path('orchestra').'libraries'.DS,
));

Autoloader::map(array(
	'Orchestra' => Bundle::path('orchestra').'orchestra'.EXT,
));

/*
|--------------------------------------------------------------------------
| Orchestra Dependencies
|--------------------------------------------------------------------------
|
| Add Orchestra helpers function and dependencies.
|
*/

include_once Bundle::path('orchestra').'helpers'.EXT;
include_once Bundle::path('orchestra').'includes'.DS.'dependencies'.EXT;

/*
|--------------------------------------------------------------------------
| Orchestra Events Listener
|--------------------------------------------------------------------------
|
| Lets listen to when Orchestra bundle is started.
|
*/ 
Event::listen('laravel.done', function () 
{
	Orchestra\Core::shutdown();
});

Event::listen('orchestra.started: backend', function ()
{
	Orchestra\View::$theme = 'backend';
});

/*
|--------------------------------------------------------------------------
| Let's Start
|--------------------------------------------------------------------------
*/

Orchestra\Core::start();
Orchestra\Core::asset();
Add minor spaces to docblock
Add minor spaces to docblock

Signed-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>
