/
githubmirror
/
joomla-cms
Обзор
Документация
Войти
/
githubmirror
/
joomla-cms
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
5.4-dev
libraries/src/Event/BeforeExtensionBootEvent.php
61 строка
1 KB
Allon Moritz
Replace JPATH_PLATFORM with _JEXEC (#40343)
29 май 2023, 11:12
Не верифицирован
29 май 2023, 11:12
e2170c8
Код
Авторство
О чём код?
<?php /** * Joomla! Content Management System * * @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\CMS\Event; use Joomla\DI\Container; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * 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']; } }