BreadcrumbFactory
extends BaseBreadcrumbFactory
in package
FinalYes
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
- $appContext : AppContext
- $categoryManager : CategoryManager
- $control : BaseComponent|null
- $pageManager : PageManager
Methods
- __construct() : mixed
- create() : Breadcrumb
- 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
$categoryManager read-only
protected
CategoryManager
$categoryManager
$control
protected
BaseComponent|null
$control
= null
$pageManager read-only
protected
PageManager
$pageManager
Methods
__construct()
public
__construct(PageManager $pageManager, CategoryManager $categoryManager) : mixed
Parameters
- $pageManager : PageManager
- $categoryManager : CategoryManager
create()
public
create() : Breadcrumb
Return values
BreadcrumbgetAppContext()
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