/** * @param string $rootPath * @return ClassDependency */ public function __construct($rootPath = null) { if (!defined('AF_LIB_PATH')) { $err = 'constant AF_BASE_PATH must be defined before loading '; $err .= 'dependencies'; throw new RunTimeException($err); } parent::__construct(AF_LIB_PATH); $dependencies = array('\\Appfuel\\Error\\ErrorInterface', '\\Appfuel\\Error\\ErrorStackInterface', '\\Appfuel\\Error\\ErrorItem', '\\Appfuel\\Error\\ErrorStack', '\\Appfuel\\DataStructure\\DictionaryInterface', '\\Appfuel\\DataStructure\\Dictionary', '\\Appfuel\\Console\\ConsoleOutputInterface', '\\Appfuel\\Console\\ConsoleOutput', '\\Appfuel\\Http\\HttpOutputInterface', '\\Appfuel\\Http\\HttpOutput', '\\Appfuel\\Kernel\\KernelRegistry', '\\Appfuel\\Kernel\\Error\\ErrorLevelInterface', '\\Appfuel\\Kernel\\Error\\ErrorLevel', '\\Appfuel\\Kernel\\Error\\ErrorDisplayInterface', '\\Appfuel\\Kernel\\Error\\ErrorDisplay', '\\Appfuel\\Kernel\\IncludePathInterface', '\\Appfuel\\Kernel\\IncludePath', '\\Appfuel\\Kernel\\KernelRegistry', '\\Appfuel\\Kernel\\Startup\\StartupTaskInterface', '\\Appfuel\\Kernel\\Startup\\StartupTaskAbstract', '\\Appfuel\\Kernel\\FaultHandlerInterface', '\\Appfuel\\Kernel\\FaultHandler', '\\Appfuel\\Log\\LogPriorityInterface', '\\Appfuel\\Log\\LogEntryInterface', '\\Appfuel\\Log\\LogAdapterInterface', '\\Appfuel\\Log\\LoggerInterface', '\\Appfuel\\Log\\SysLogAdapter', '\\Appfuel\\Log\\LogEntry', '\\Appfuel\\Log\\LogPriority', '\\Appfuel\\Log\\Logger'); $this->loadNamespaces($dependencies); }