This repository has been archived by the owner on Feb 10, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
stevewest
committed
May 13, 2016
1 parent
4952c2b
commit c989b6d
Showing
9 changed files
with
228 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
/** | ||
* @package Fuel\Foundation | ||
* @version 2.0 | ||
* @author Fuel Development Team | ||
* @license MIT License | ||
* @copyright 2010 - 2016 Fuel Development Team | ||
* @link http://fuelphp.com | ||
*/ | ||
|
||
namespace Fuel\Foundation\Event; | ||
|
||
use Fuel\Foundation\Application; | ||
use League\Event\AbstractEvent; | ||
|
||
abstract class AbstractAppEvent extends AbstractEvent | ||
{ | ||
/** | ||
* @var Application | ||
*/ | ||
protected $application; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
protected $name; | ||
|
||
public function __construct(Application $application) | ||
{ | ||
$this->application = $application; | ||
} | ||
|
||
public function getApplication() : Application | ||
{ | ||
return $this->application; | ||
} | ||
|
||
public function getName() : string | ||
{ | ||
return $this->name; | ||
} | ||
} |
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,23 @@ | ||
<?php | ||
/** | ||
* @package Fuel\Foundation | ||
* @version 2.0 | ||
* @author Fuel Development Team | ||
* @license MIT License | ||
* @copyright 2010 - 2016 Fuel Development Team | ||
* @link http://fuelphp.com | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Fuel\Foundation\Event; | ||
|
||
/** | ||
* Triggered when the application has finished all request processing and the app is shutting down. | ||
* | ||
* @package Fuel\Foundation\Event | ||
*/ | ||
class AppShutdown extends AbstractAppEvent | ||
{ | ||
protected $name = 'fuel.application.shutdown'; | ||
} |
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,26 @@ | ||
<?php | ||
/** | ||
* @package Fuel\Foundation | ||
* @version 2.0 | ||
* @author Fuel Development Team | ||
* @license MIT License | ||
* @copyright 2010 - 2016 Fuel Development Team | ||
* @link http://fuelphp.com | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Fuel\Foundation\Event; | ||
|
||
use Fuel\Foundation\Application; | ||
use League\Event\AbstractEvent; | ||
|
||
/** | ||
* Triggered when a request has been finished. | ||
* | ||
* @package Fuel\Foundation\Event | ||
*/ | ||
class RequestFinished extends AbstractAppEvent | ||
{ | ||
protected $name = 'fuel.request.finished'; | ||
} |
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,26 @@ | ||
<?php | ||
/** | ||
* @package Fuel\Foundation | ||
* @version 2.0 | ||
* @author Fuel Development Team | ||
* @license MIT License | ||
* @copyright 2010 - 2016 Fuel Development Team | ||
* @link http://fuelphp.com | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Fuel\Foundation\Event; | ||
|
||
use Fuel\Foundation\Application; | ||
use League\Event\AbstractEvent; | ||
|
||
/** | ||
* Triggered when a request has been started. | ||
* | ||
* @package Fuel\Foundation\Event | ||
*/ | ||
class RequestStarted extends AbstractAppEvent | ||
{ | ||
protected $name = 'fuel.request.started'; | ||
} |
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,26 @@ | ||
<?php | ||
/** | ||
* @package Fuel\Foundation | ||
* @version 2.0 | ||
* @author Fuel Development Team | ||
* @license MIT License | ||
* @copyright 2010 - 2016 Fuel Development Team | ||
* @link http://fuelphp.com | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Fuel\Foundation\Event; | ||
|
||
use Fuel\Foundation\Application; | ||
use League\Event\AbstractEvent; | ||
|
||
/** | ||
* Triggered when a response has been started. | ||
* | ||
* @package Fuel\Foundation\Event | ||
*/ | ||
class ResponseFinished extends AbstractAppEvent | ||
{ | ||
protected $name = 'fuel.response.finished'; | ||
} |
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,26 @@ | ||
<?php | ||
/** | ||
* @package Fuel\Foundation | ||
* @version 2.0 | ||
* @author Fuel Development Team | ||
* @license MIT License | ||
* @copyright 2010 - 2016 Fuel Development Team | ||
* @link http://fuelphp.com | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Fuel\Foundation\Event; | ||
|
||
use Fuel\Foundation\Application; | ||
use League\Event\AbstractEvent; | ||
|
||
/** | ||
* Triggered when a response has been started. | ||
* | ||
* @package Fuel\Foundation\Event | ||
*/ | ||
class ResponseStarted extends AbstractAppEvent | ||
{ | ||
protected $name = 'fuel.response.started'; | ||
} |
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