CoreFiles by mySites.guru
BeforeExecuteEvent.php46 lines, 908 bytes, from Joomla_4.0.0-alpha6-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha5
md5
eb74adf4729a9ff3699cbba84a823b35
sha1
a267ddc00b90d27889255ad68c2e5f47d5fea81a
sha256
336c5dcf42550c51180c90b822fe99300a09f2b401134b40860e556b37879ab7
<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  Copyright (C) 2005 - 2018 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'];
	}
}

No other release has this exact content. See every version of this file.