CoreFiles by mySites.guru
BeforeExtensionBootEvent.php58 lines, 1,057 bytes, from Joomla_4.0.0-alpha12-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha11
md5
228c3fc3d74248098df13bcf8c4a2a55
sha1
bb29ddc229e996569d0b5c604b9490d4a91c5185
sha256
82aa88abd2b4f5163d1a9203caf5adccf9e07b5926ad91f059e3e69386eef29b
<?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\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->arguments['extensionName'];
	}

	/**
	 * 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.