Prv8 Shell
Server : Apache
System : Linux vps.urbanovitalino.adv.br 3.10.0-1062.12.1.el7.x86_64 #1 SMP Tue Feb 4 23:02:59 UTC 2020 x86_64
User : urbanovitalinoad ( 1001)
PHP Version : 7.3.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/urbanovitalinoad/public_html/next/libraries/src/MVC/Factory/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/urbanovitalinoad/public_html/next/libraries/src/MVC/Factory/MVCFactoryAwareTrait.php
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2019 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\MVC\Factory;

/**
 * MVCFactory aware trait.
 *
 * @since  4.0.0
 */
trait MVCFactoryAwareTrait
{
    /**
     * The mvc factory.
     *
     * @var    MVCFactoryInterface
     * @since  4.0.0
     */
    private $mvcFactory;

    /**
     * Returns the MVC factory.
     *
     * @return  MVCFactoryInterface
     *
     * @since   4.0.0
     * @throws  \UnexpectedValueException
     */
    protected function getMVCFactory(): MVCFactoryInterface
    {
        if ($this->mvcFactory) {
            return $this->mvcFactory;
        }

        throw new \UnexpectedValueException('MVC Factory not set in ' . __CLASS__);
    }

    /**
     * Set the MVC factory.
     *
     * @param   MVCFactoryInterface  $mvcFactory  The MVC factory
     *
     * @return  void
     *
     * @since   4.0.0
     */
    public function setMVCFactory(MVCFactoryInterface $mvcFactory)
    {
        $this->mvcFactory = $mvcFactory;
    }
}

haha - 2025