- Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathapplication.php
More file actions
Latest commit
17 lines (13 loc) · 489 Bytes
/
Copy pathapplication.php
File metadata and controls
17 lines (13 loc) · 489 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
define('APP_ROOT', __DIR__);
// autoload app classes
spl_autoload_register(function($class) {
if (strpos($class, 'MyMusic') === 0) returnincludeAPP_ROOT . '/source/' . str_replace('\\', '/', $class) . '.php';
});
// vendor includes
includeAPP_ROOT . '/vendor/Zend_Db-2.0.3.phar';
includeAPP_ROOT . '/vendor/SpotifyAPI/autoload.php';
// services
$services = newMyMusic\ServiceLocator;
$services['config'] = parse_ini_file(APP_ROOT . '/data/config.ini');
return$services;