FeedEditFactory
extends BaseComponentFactory
in package
FinalYes
Factory for {@see FeedEdit}; `AppContext` is injected by a decorator (`setupAppContext()`).
Table of Contents
Properties
- $appContext : AppContext
- $control : BaseComponent|null
- $adminLanguageManager : LanguageManager
- $cronLockManager : CronLockManager
- $currencyManager : CurrencyManager
- $feedManager : FeedManager
- $feedParameterActionManager : FeedParameterActionManager
- $formActionsFactory : FormActionsFactory
Methods
- __construct() : mixed
- create() : FeedEdit
- 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
$adminLanguageManager read-only
private
LanguageManager
$adminLanguageManager
$cronLockManager read-only
private
CronLockManager
$cronLockManager
$currencyManager read-only
private
CurrencyManager
$currencyManager
$feedManager read-only
private
FeedManager
$feedManager
$feedParameterActionManager read-only
private
FeedParameterActionManager
$feedParameterActionManager
$formActionsFactory read-only
private
FormActionsFactory
$formActionsFactory
Methods
__construct()
public
__construct(FeedManager $feedManager, FeedParameterActionManager $feedParameterActionManager, LanguageManager $adminLanguageManager, CurrencyManager $currencyManager, FormActionsFactory $formActionsFactory, CronLockManager $cronLockManager) : mixed
Parameters
- $feedManager : FeedManager
- $feedParameterActionManager : FeedParameterActionManager
- $adminLanguageManager : LanguageManager
- $currencyManager : CurrencyManager
- $formActionsFactory : FormActionsFactory
- $cronLockManager : CronLockManager
create()
public
create(int|null $feedId) : FeedEdit
Parameters
- $feedId : int|null
Return values
FeedEditgetAppContext()
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