CoreFiles by mySites.guru
BeforeExecuteEvent.php46 lines, 908 bytes, from Joomla_4.0.0-alpha11-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha10
md5
acf94a793f5a955efc4b4b34984b7748
sha1
d76f59b0aec7fd2f38ab3c5ec735e21bb1819337
sha256
e778812a5d311941e061c14b9260d367e0b5c10d48538525953c4de62b2e8ff6
<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE
 */

namespace Joomla\CMS\Event;

use Joomla\Application\AbstractApplication;
use Joomla\DI\Container;

defined('JPATH_PLATFORM') or die;

/**
 * Event class for representing the application's `onBeforeExecute` event
 *
 * @since  4.0.0
 */
class BeforeExecuteEvent extends AbstractImmutableEvent
{
	/**
	 * Get the event's application object
	 *
	 * @return  AbstractApplication
	 *
	 * @since  4.0.0
	 */
	public function getApplication(): AbstractApplication
	{
		return $this->getArgument('subject');
	}

	/**
	 * Get the event's container object
	 *
	 * @return  Container
	 *
	 * @since  4.0.0
	 */
	public function getContainer(): Container
	{
		return $this->arguments['container'];
	}
}

The same content is in 5 releases, Joomla 4.0.0-alpha7 to 4.0.0-alpha11. See them all, or every version of this file.