Loader\Exception

extends class Phalcon\Exception implements Throwable Source on GitHub Methods final private Exception __clone () inherited from Exception Clone the exception public __construct ([string $message], [int $code], [Exception $previous]) inherited from Exception Exception constructor public __wakeup () inherited from Exception ... final public string getMessage () inherited from Exception Gets the Exception message final public int getCode () inherited from Exception Gets the Exception code fin

Loader::unregister

public unregister () Unregister the autoload method

Loader::setExtensions

public setExtensions (array $extensions) Sets an array of file extensions that the loader must try in each attempt to locate the file

Loader::setEventsManager

public setEventsManager (Phalcon\Events\ManagerInterface $eventsManager) Sets the events manager

Loader::registerNamespaces

public registerNamespaces (array $namespaces, [mixed $merge]) Register namespaces and their related directories

Loader::registerFiles

public registerFiles (array $files, [mixed $merge]) Registers files that are “non-classes” hence need a “require”. This is very useful for including files that only have functions

Loader::registerDirs

public registerDirs (array $directories, [mixed $merge]) Register directories in which “not found” classes could be found

Loader::registerClasses

public registerClasses (array $classes, [mixed $merge]) Register classes and their locations

Loader::register

public register () Register the autoload method

Loader::loadFiles

public loadFiles () Checks if a file exists and then adds the file by doing virtual require