MVCFactoryServiceTrait

Defines the trait for a MVC factory service class.

since

4.0.0

Methods

getMVCFactory

Get the factory.

getMVCFactory() : \Joomla\CMS\MVC\Factory\MVCFactoryInterface
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
since

4.0.0

Arguments

$mvcFactory

\Joomla\CMS\MVC\Factory\MVCFactoryInterfaceThe factory

Properties

mvcFactory

The MVC Factory.