Class Hooks
Hook callbacks.
Methods summary
public static
|
#
filter_autoconfig( array & $autoconfig )
Adds "modules" directories found in the app directories to |
public static
|
#
on_app_configure( ICanBoogie\Application\ConfigureEvent $event, ICanBoogie\Application $app )
Extends application configuration according to modules features. |
public static
|
#
on_app_boot( ICanBoogie\Application\BootEvent $event, ICanBoogie\Application $app )
Boot enabled modules. |
public static
|
#
before_synthesize_routes( ICanBoogie\Binding\Routing\BeforeSynthesizeRoutesEvent $event )
Alter routes defined by modules by adding a |
public static
|
#
on_template_resolver_alter( ICanBoogie\Render\TemplateResolver\AlterEvent $event )
Decorates the template resolver with a |
public static
|
#
on_view_alter( ICanBoogie\View\View\AlterEvent $event, ICanBoogie\View\View $target )
If the view renders a module's route, the "template" directory of that module is added
to the list of templates locations. Also, the module is set as |
public static
|
#
on_alter_request_dispatcher( ICanBoogie\HTTP\RequestDispatcher\AlterEvent $event, ICanBoogie\HTTP\RequestDispatcher $target )
|
public static
|
#
on_app_clear_cache( ICanBoogie\Application\ClearCacheEvent $event, ICanBoogie\Application $app )
Clears modules cache. |
public static
|
#
get_modules( ICanBoogie\Application $app )
Return the |
public static
|
#
get_models( ICanBoogie\Application $app )
Returns the |
public static
|
#
controller_get_module( ICanBoogie\Routing\Controller $controller )
Return the |
public static
ICanBoogie\ActiveRecord\Model
|
#
controller_get_model( ICanBoogie\Routing\Controller $controller )
Return the primary model of the module associated with the route handled by the controller. |
public static
ICanBoogie\Facets\Fetcher\BasicFetcher
|
#
controller_lazy_get_records_fetcher( ICanBoogie\Routing\Controller $controller )
Return a record fetcher for the controller |
public static
ICanBoogie\Facets\RecordCollection
|
#
controller_fetch_records( ICanBoogie\Routing\Controller $controller, array $modifiers )
Fetch records using the controller |
public static
ICanBoogie\ActiveRecord
|
#
controller_fetch_record( ICanBoogie\Routing\Controller $controller, array $modifiers, ICanBoogie\Facets\Fetcher|null & $fetcher = null )
Fetch records using the controller |