| 1 | 2 | simandl | <?php |
| 2 | | | |
| 3 | | | /** |
| 4 | | | * @author Jakub PetrĹžĂlka <petrzilka@czweb.net> |
| 5 | | | */ |
| 6 | | | |
| 7 | | | /* INITIALIZATION */ |
| 8 | | | |
| 9 | | | /* Load framework configuration */ |
| 10 | | | require_once('framework.conf.php'); |
| 11 | | | |
| 12 | | | /* Load site configuration */ |
| 13 | | | require_once('application.conf.php'); |
| 14 | | | |
| 15 | | | /* |
| 16 | | | * Require framework class loader to deal with all dependencies |
| 17 | | | * These files are required minimum to initialize autoloading. |
| 18 | | | */ |
| 19 | | | require_once(FRAMEWORK_DIR . DS . "Core" . DS . 'MemberAccessException.php'); |
| 20 | | | require_once(FRAMEWORK_DIR . DS . "Core" . DS . 'ObjectMixin.php'); |
| 21 | | | require_once(FRAMEWORK_DIR . DS . "Core" . DS . 'Object.php'); |
| 22 | | | require_once(FRAMEWORK_DIR . DS . "ClassLoading" . DS . 'Loader.php'); |
| 23 | | | require_once(FRAMEWORK_DIR . DS . "ClassLoading" . DS . 'FrameworkLoader.php'); |
| 24 | | | |
| 25 | | | /* Call Phem framework ClassLoader */ |
| 26 | | | |
| 27 | | | use Phem\ClassLoading\FrameworkLoader; |
| 28 | | | |
| 29 | | | $frameworkLoader = new FrameworkLoader(); |
| 30 | | | $frameworkLoader->commit(); |
| 31 | | | |
| 32 | | | /* Call 3rdParty dependency ClassLoader */ |
| 33 | | | |
| 34 | | | use Phem\ClassLoading\ThirdPartyLoader; |
| 35 | | | |
| 36 | | | $thirdPartyLoader = new ThirdPartyLoader(); |
| 37 | | | $thirdPartyLoader->commit(); |
| 38 | | | |
| 39 | | | /* Call application ClassLoaders */ |
| 40 | | | |
| 41 | | | use Phem\ClassLoading\ApplicationLoader; |
| 42 | | | |
| 43 | | | $applicationLoader = new ApplicationLoader(); |
| 44 | | | $applicationLoader->commit(); |