MVCComponent

Extends Component Implements MVCFactoryServiceInterface

MVC Component class.

since

4.0.0

package

Joomla CMS

Methods

__construct

Component constructor.

__construct(\Joomla\CMS\Dispatcher\ComponentDispatcherFactoryInterface dispatcherFactory) : 
inherited
since

4.0.0

Arguments

dispatcherFactory

ComponentDispatcherFactoryInterfaceThe dispatcher factory

Response

mixed

getDispatcher

Returns the dispatcher for the given application.

getDispatcher(\Joomla\CMS\Application\CMSApplicationInterface application) : \Joomla\CMS\Dispatcher\DispatcherInterface
inherited
since

4.0.0

Arguments

application

CMSApplicationInterfaceThe application

Response

DispatcherInterface

getMVCFactory

Get the factory.

getMVCFactory() : \Joomla\CMS\MVC\Factory\MVCFactoryInterface
inherited
since

4.0.0

throws

UnexpectedValueExceptionMay be thrown if the factory has not been set.

Response

MVCFactoryInterface

setMVCFactory

The MVC Factory.

setMVCFactory(\Joomla\CMS\MVC\Factory\MVCFactoryInterface mvcFactory) : 
inherited
since

4.0.0

Arguments

mvcFactory

MVCFactoryInterfaceThe factory

Response

void

Properties

dispatcherFactory

The dispatcher factory.

inherited

mvcFactory

The MVC Factory.

inherited