-
Docs
Backend
-
Behaviors
-
Classes
-
Controllers
-
Database
-
Seeds
-
-
Facades
-
FormWidgets
-
Helpers
-
Exception
- Backend
-
-
Models
-
ReportWidgets
-
Skins
-
Traits
-
Widgets
- ServiceProvider
-
-
Cms
-
Classes
- Asset
- AutoDatasource
- CmsCompoundObject
- CmsController
- CmsException
- CmsObject
- CmsObjectCollection
- CodeBase
- CodeParser
- ComponentBase
- ComponentHelpers
- ComponentManager
- ComponentPartial
- Content
- Controller
- Layout
- LayoutCode
- MediaLibrary
- MediaLibraryItem
- MediaViewHelper
- Meta
- ObjectMemoryCache
- Page
- PageCode
- Partial
- PartialCode
- PartialStack
- Router
- Theme
- ThemeManager
-
Components
-
Contracts
-
Controllers
-
Facades
-
FormWidgets
-
Helpers
-
Models
-
ReportWidgets
-
Traits
-
Twig
- ComponentNode
- ComponentTokenParser
- ContentNode
- ContentTokenParser
- DebugExtension
- DefaultNode
- DefaultTokenParser
- Extension
- FlashNode
- FlashTokenParser
- FrameworkNode
- FrameworkTokenParser
- Loader
- PageNode
- PageTokenParser
- PartialNode
- PartialTokenParser
- PlaceholderNode
- PlaceholderTokenParser
- PutNode
- PutTokenParser
- ScriptsNode
- ScriptsTokenParser
- StylesNode
- StylesTokenParser
-
Widgets
- ServiceProvider
-
-
System
-
Behaviors
-
Classes
-
Console
-
Controllers
-
Database
-
Helpers
-
Models
-
ReportWidgets
-
Traits
-
Twig
- ServiceProvider
-
-
Events
-
backend
-
ajax
-
filter
-
form
-
list
-
menu
-
page
-
user
-
-
cms
-
ajax
-
block
-
combiner
-
component
-
object
-
page
-
router
-
template
-
theme
-
-
halcyon
-
datasource
-
-
mailer
-
media
-
model
-
system
-
assets
-
console
-
mirror
-
theme
-
-
reportwidgets
-
settings
- extendConfigFile
-
-
translator
-
-
Library
-
Argon
-
Auth
-
Models
- AuthException
- Manager
-
-
Config
-
Cookie
-
Middleware
-
-
Database
-
Attach
-
Behaviors
-
Concerns
-
Connections
-
Connectors
-
Models
-
Relations
-
Schema
-
Traits
-
Updates
- README
- Builder
- Collection
- DatabaseServiceProvider
- DataFeed
- Dongle
- MemoryCache
- Model
- ModelBehavior
- ModelException
- NestedTreeScope
- Pivot
- QueryBuilder
- SortableScope
- TreeCollection
- Updater
-
-
Events
-
Exception
-
Extension
-
Filesystem
-
Flash
-
Foundation
-
Bootstrap
-
Console
-
Exception
-
Http
-
Middleware
- Kernel
-
-
Providers
- Application
- Maker
-
-
Halcyon
-
Datasource
-
Exception
-
Processors
-
Traits
- README
- Builder
- Collection
- HalcyonServiceProvider
- MemoryCacheManager
- MemoryRepository
- Model
-
-
Html
-
Mail
-
Network
-
Parse
-
Router
-
Scaffold
-
Support
-
Translation
-
- Documentation
- API
- Library
- Support
- ClassLoader
October\Rain\Support\ClassLoader
Source: ~/vendor/october/rain/src/Support/ClassLoader.php
Class loader
A simple autoloader used by October, it expects the folder names to be lower case and the file name to be capitalized as per the class name.
Public properties
public October\Rain\Filesystem\Filesystem $files
The filesystem instance.
public string $basePath
The base path.
public string|null $manifestPath
The manifest path.
public array $manifest
The loaded manifest array.
Protected properties
protected bool $manifestDirty
Determine if the manifest needs to be written.
protected array $directories
The registered directories.
protected bool $registered
Indicates if a ClassLoader has been registered.
Public methods
public void __construct(October\Rain\Filesystem\Filesystem $files, string $basePath, string $manifestPath)
Create a new package manifest instance.
Parameters
- October\Rain\Filesystem\Filesystem $files
- string $basePath
- string $manifestPath
public void addDirectories(string|array $directories)
Add directories to the class loader.
Parameters
- string|array $directories
public void build()
Build the manifest and write it to disk.
public array getDirectories()
Gets all the directories registered with the loader.
public void load(string $class)
Load the given class file.
Parameters
- string $class
public void register()
Register the given class loader on the auto-loader stack.
public void removeDirectories(string|array $directories=NULL)
Remove directories from the class loader.
Parameters
- string|array $directories
Protected methods
protected void ensureManifestIsLoaded()
Ensure the manifest has been loaded into memory.
protected void includeClass(string $class, string $path)
Includes a class and adds to the manifest
Parameters
- string $class
- string $path
protected bool isRealFilePath(string $path)
Determine if a relative path to a file exists and is real
Parameters
- string $path
protected string normalizeClass(string $class)
Get the normal file name for a class.
Parameters
- string $class
protected void write(array $manifest)
Write the given manifest array to disk.
Parameters
- array $manifest