MVCComponent

Extends Component Implements MVCFactoryServiceInterface

MVC Component class.

since

4.0.0

package

Application

Methods

__construct

Component constructor.

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

4.0.0

Arguments

dispatcherFactory

\Joomla\CMS\Dispatcher\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

\Joomla\CMS\Application\CMSApplicationInterfaceThe application

Response

\Joomla\CMS\Dispatcher\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

\Joomla\CMS\MVC\Factory\MVCFactoryInterface

setMVCFactory

The MVC Factory.

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

4.0.0

Arguments

mvcFactory

\Joomla\CMS\MVC\Factory\MVCFactoryInterfaceThe factory

Properties

mvcFactory

The MVC Factory.

inherited

dispatcherFactory

The dispatcher factory.

inherited