CoreFiles by mySites.guru
BeforeExtensionBootEvent.php58 lines, 1,060 bytes, from Joomla_4.0.0-alpha5-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha3
md5
deddc84e7e98222498233ad555c7eabc
sha1
09343d1d43cca4be4f342ab6484c966604fc7af2
sha256
da6d0d1d6e0d0f710682c8ad5c64c8bd75f845aae74e043fba2654c22dd178d9
<?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\DI\Container;

defined('JPATH_PLATFORM') or die;

/**
 * Event class for representing the extensions's `onBeforeExtensionBoot` event
 *
 * @since  4.0.0
 */
class BeforeExtensionBootEvent extends AbstractImmutableEvent
{
	/**
	 * Get the event's extension type. Can be:
	 * - component
	 *
	 * @return  string
	 *
	 * @since  4.0.0
	 */
	public function getExtensionType(): string
	{
		return $this->getArgument('type');
	}

	/**
	 * Get the event's extension name.
	 *
	 * @return  string
	 *
	 * @since  4.0.0
	 */
	public function getExtensionName(): string
	{
		return $this->getArgument('extensionName');
	}

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

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