Contao\CoreBundle\Framework\FrameworkAwareTrait::getFramework PHP Метод

getFramework() публичный Метод

Returns the framework service.
Устаревший: Deprecated since Contao 4.3, to be removed in Contao 5.0
public getFramework ( ) : Contao\CoreBundle\Framework\ContaoFrameworkInterface
Результат Contao\CoreBundle\Framework\ContaoFrameworkInterface
    public function getFramework()
    {
        @trigger_error('Using FrameworkAwareTrait::getFramework() has been deprecated and will no longer work in Contao 5.0.', E_USER_DEPRECATED);
        if (null === $this->framework) {
            throw new \LogicException('The framework service has not been set.');
        }
        return $this->framework;
    }
FrameworkAwareTrait