CoreFiles by mySites.guru
BeforeExecuteEvent.php36 lines, 729 bytes, from Joomla_5.3.2-Stable-Full_Package.zip
Raw History Compare with 5.3.1
md5
240360f85f826c4c7e7fc1a7d52482d5
sha1
a92a874b1b5fc71710171f52f09024a5f53f8285
sha256
bd8a1b39c192b31bbe402f561588b1fbf71e6ce495f30e7f927f0b1c0c08c0a2
<?php

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

namespace Joomla\CMS\Event\Application;

use Joomla\DI\Container;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * Class for BeforeExecute event
 *
 * @since  5.0.0
 */
class BeforeExecuteEvent extends ApplicationEvent
{
    /**
     * Get the event's container object
     *
     * @return  ?Container
     *
     * @since  5.0.0
     */
    public function getContainer(): ?Container
    {
        return $this->arguments['container'] ?? null;
    }
}

The same content is in 152 releases, Joomla 5.0.0-alpha4 to 6.2.1-rc1. See them all, or every version of this file.