-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add onBeforeExecute event, move languagefilter plugin detection to th…
…is event
- Loading branch information
Michael Babker
committed
Sep 23, 2016
1 parent
3feb5c2
commit 23e35ce
Showing
5 changed files
with
103 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
/** | ||
* Joomla! Content Management System | ||
* | ||
* @copyright Copyright (C) 2005 - 2016 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; | ||
|
||
defined('JPATH_PLATFORM') or die; | ||
|
||
/** | ||
* Event class for representing the application's `onBeforeExecute` event | ||
* | ||
* @since __DEPLOY_VERSION__ | ||
*/ | ||
class BeforeExecuteEvent extends AbstractImmutableEvent | ||
{ | ||
/** | ||
* Get the event's application object | ||
* | ||
* @return AbstractApplication | ||
* | ||
* @since __DEPLOY_VERSION__ | ||
*/ | ||
public function getApplication() | ||
{ | ||
return $this->getArgument('subject'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters