BaseBreadcrumbFactory
extends BaseComponentFactory
in package
AbstractYes
Shared parent of the breadcrumb factories.
The class is abstract so that DI search does not register it as a service; otherwise
the leaf factory types (System, Bazaar, Blog, ...) would stop being unambiguous for
getByType().
Table of Contents
Properties
Methods
- __construct() : mixed
- getAppContext() : AppContext
- getControl() : BaseComponent
- initControl() : void
- initializeAllContexts() : void
- setAppContext() : $this
- initialized() : T
- Stores the component as `$control`, initializes it and returns it with its concrete type (so `create(): Cart` does not return the generic `?BaseComponent` property).
Properties
$appContext
protected
AppContext
$appContext
$control
protected
BaseComponent|null
$control
= null
$pageManager read-only
protected
PageManager
$pageManager
Methods
__construct()
public
__construct(PageManager $pageManager) : mixed
Parameters
- $pageManager : PageManager
getAppContext()
public
getAppContext() : AppContext
Return values
AppContextgetControl()
public
getControl() : BaseComponent
Return values
BaseComponentinitControl()
public
initControl() : void
initializeAllContexts()
public
initializeAllContexts() : void
setAppContext()
public
setAppContext(AppContext $appContext) : $this
Parameters
- $appContext : AppContext
Return values
$thisinitialized()
Stores the component as `$control`, initializes it and returns it with its concrete type (so `create(): Cart` does not return the generic `?BaseComponent` property).
protected
initialized(T $control) : T
Parameters
- $control : T