* // Register an alias for the "SwiftMailer\Transport" class * Loader::alias('Transport', 'SwiftMailer\\Transport'); * * * @param string $alias * @param string $class * @return void */ public static function alias($alias, $class) { static::$aliases[$alias] = $class; } /** * Register a path with the auto-loader. * * The registered path will be searched when auto-loading classes. * * * // Register a path to be searched by the auto-loader * Loader::path('path/to/files'); * * * @param string $path * @return void */ public static function path($path) { static::$paths[] = rtrim($path, '/').'/'; } /** * Remove an alias from the auto-loader's alias registrations. * * * // Remove the "Transport" alias from the registered aliases * Loader::forget_alias('Transport'); * * * @param string $alias * @return void */ public static function forget_alias($alias) { unset(static::$aliases[$alias]); } }