-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #226 from WebFiori/dev
feat: Added Additional Logging Methods to Tasks Manager
- Loading branch information
Showing
18 changed files
with
377 additions
and
102 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
namespace app\middleware; | ||
|
||
use webfiori\framework\middleware\AbstractMiddleware; | ||
use webfiori\framework\session\SessionsManager; | ||
use webfiori\http\Request; | ||
use webfiori\http\Response; | ||
/** | ||
* A middleware which is created using the command "create". | ||
* | ||
* The middleware will have the name 'Super Middleware' and | ||
* Priority 100. | ||
* In addition, the middleware is added to the following groups: | ||
* <ul> | ||
* <li>one-group</li> | ||
* <li>two-group</li> | ||
* <li>global</li> | ||
* </ul> | ||
*/ | ||
class CoolMiddleware extends AbstractMiddleware { | ||
/** | ||
* Creates new instance of the class. | ||
*/ | ||
public function __construct() { | ||
parent::__construct('Super Cool Middleware'); | ||
$this->setPriority(100); | ||
$this->addToGroups([ | ||
'one-group', | ||
'two-group', | ||
]); | ||
} | ||
/** | ||
* Execute a set of instructions before accessing the application. | ||
*/ | ||
public function before(Request $request, Response $response) { | ||
//TODO: Implement the action to perform before processing the request. | ||
} | ||
/** | ||
* Execute a set of instructions after processing the request and before sending back the response. | ||
*/ | ||
public function after(Request $request, Response $response) { | ||
//TODO: Implement the action to perform after processing the request. | ||
} | ||
/** | ||
* Execute a set of instructions after sending the response. | ||
*/ | ||
public function afterSend(Request $request, Response $response) { | ||
//TODO: Implement the action to perform after sending the request. | ||
} | ||
} |
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
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
Oops, something went wrong.