RoutingServiceProvider
- Full name:
\Codefy\Framework\Providers\RoutingServiceProvider
- Parent class:
\Codefy\Framework\Support\CodefyServiceProvider
Properties
loadRoutesUsing
The callback that should be used to load the application's routes.
alwaysLoadRoutesUsing
The global callback that should be used to load the application's routes.
- This property is static.
Methods
register
routes
Register the callback that will be used to load the application's routes.
Parameters:
Parameter | Type | Description |
---|---|---|
$routes | \Closure|callable|string|array|null |
loadRoutesUsing
Register the callback that will be used to load the application's routes.
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$routes | \Closure|callable|string|array|null |
loadRoutes
Load the application routes.
Throws:
normalizeRoutes
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$routes | \Closure|callable|string|array |
__call
Pass dynamic methods onto the router instance.
Parameters:
Parameter | Type | Description |
---|---|---|
$method | string | |
$parameters | array |
Inherited methods
__construct
Parameters:
Parameter | Type | Description |
---|---|---|
$codefy | \Codefy\Framework\Application |
booting
Register a booting callback to be run before the "boot" method is called.
Parameters:
Parameter | Type | Description |
---|---|---|
$callback | \Closure |
booted
Register a booted callback to be run after the "boot" method is called.
Parameters:
Parameter | Type | Description |
---|---|---|
$callback | \Closure |
callBootingCallbacks
Call the registered booting callbacks.
callBootedCallbacks
Call the registered booted callbacks.
defaultProviders
Get the default providers for a CodefyPHP application.
- This method is static.
publishes
Register publishable paths for this provider.
Parameters:
Parameter | Type | Description |
---|---|---|
$paths | array | [from => tag] |
$group | string|null | Optional tag/group name ("config", "migrations", etc.) |
pathsToPublish
Get all publishable paths for this provider.
Parameters:
Parameter | Type | Description |
---|---|---|
$tag | string|null | Restrict to a tag (e.g. "config", "migrations") |
Return Value:
[from => tag]
publishTags
List all tags defined by this provider.
Automatically generated on 2025-10-13