Methods summary
public static
|
#
register( string $bundle, array $config = array() )
Register the bundle for the application.
Register the bundle for the application.
Parameters
- $bundle
string $bundle
- $config
array $config
|
public static
|
#
start( string $bundle )
Load a bundle by running its start-up script.
Load a bundle by running its start-up script.
If the bundle has already been started, no action will be taken.
Parameters
|
public static
|
#
routes( string $bundle )
Load the "routes" file for a given bundle.
Load the "routes" file for a given bundle.
Parameters
|
protected static
|
#
autoloads( string $bundle, array $config )
Register the auto-loading configuration for a bundle.
Register the auto-loading configuration for a bundle.
Parameters
- $bundle
string $bundle
- $config
array $config
|
public static
|
#
disable( string $bundle )
Disable a bundle for the current request.
Disable a bundle for the current request.
Parameters
|
public static
string
|
#
handles( string $uri )
Determine which bundle handles the given URI.
Determine which bundle handles the given URI.
The default bundle is returned if no other bundle is assigned.
Parameters
Returns
string
|
public static
boolean
|
#
exists( string $bundle )
Determine if a bundle exists within the bundles directory.
Determine if a bundle exists within the bundles directory.
Parameters
Returns
boolean
|
public static
|
#
started( string $bundle )
Determine if a given bundle has been started for the request.
Determine if a given bundle has been started for the request.
Parameters
|
public static
|
#
routed( string $bundle )
Determine if a given bundle has its routes file loaded.
Determine if a given bundle has its routes file loaded.
Parameters
|
public static
string
|
#
prefix( string $bundle )
Get the identifier prefix for the bundle.
Get the identifier prefix for the bundle.
Parameters
Returns
string
|
public static
string
|
#
class_prefix( string $bundle )
Get the class prefix for a given bundle.
Get the class prefix for a given bundle.
Parameters
Returns
string
|
public static
string
|
#
path( string $bundle )
Return the root bundle path for a given bundle.
Return the root bundle path for a given bundle.
$path = Bundle::path('admin');
$path = Bundle::path('application');
Parameters
Returns
string
|
public static
string
|
#
assets( string $bundle )
Return the root asset path for the given bundle.
Return the root asset path for the given bundle.
Parameters
Returns
string
|
public static
string
|
#
name( string $identifier )
Get the bundle name from a given identifier.
Get the bundle name from a given identifier.
$bundle = Bundle::name('admin::home.index');
Parameters
- $identifier
string $identifier
Returns
string
|
public static
string
|
#
element( string $identifier )
Get the element name from a given identifier.
Get the element name from a given identifier.
$bundle = Bundle::bundle('admin::home.index');
Parameters
- $identifier
string $identifier
Returns
string
|
public static
string
|
#
identifier( string $bundle, string $element )
Reconstruct an identifier from a given bundle and element.
Reconstruct an identifier from a given bundle and element.
$identifier = Bundle::identifier('admin', 'home.index');
$identifier = Bundle::identifier('application', 'home.index');
Parameters
- $bundle
string $bundle
- $element
string $element
Returns
string
|
public static
string
|
#
resolve( string $bundle )
Return the bundle name if it exists, else return the default bundle.
Return the bundle name if it exists, else return the default bundle.
Parameters
Returns
string
|
public static
array
|
#
parse( string $identifier )
Parse an element identifier and return the bundle name and element.
Parse an element identifier and return the bundle name and element.
$element = Bundle::parse('admin.user');
$element = Bundle::parse('admin::user');
Parameters
- $identifier
string $identifier
Returns
array
|
public static
object
|
#
get( string $bundle )
Get the information for a given bundle.
Get the information for a given bundle.
Parameters
Returns
object
|
public static
mixed
|
#
option( string $bundle, string $option, mixed $default = null )
Get an option for a given bundle.
Get an option for a given bundle.
Parameters
- $bundle
string $bundle
- $option
string $option
- $default
mixed $default
Returns
mixed
|
public static
array
|
#
all( )
Get all of the installed bundles for the application.
Get all of the installed bundles for the application.
Returns
array
|
public static
array
|
#
names( )
Get all of the installed bundle names.
Get all of the installed bundle names.
Returns
array
|
public static
string
|
#
expand( string $path )
Expand given bundle path of form "[bundle::]path/...".
Expand given bundle path of form "[bundle::]path/...".
Parameters
Returns
string
|