-
Notifications
You must be signed in to change notification settings - Fork 4
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
1 parent
fb0693d
commit ef5bf72
Showing
5 changed files
with
79 additions
and
70 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 |
---|---|---|
@@ -1,43 +1,43 @@ | ||
[2023-06-27 22:21:43] - ::1 - ok | ||
[2023-06-27 22:23:40] - ::1 - ok | ||
[2023-06-27 22:24:24] - ::1 - ok | ||
[2023-06-27 22:32:26] - ::1 - ok | ||
[2023-06-27 22:32:56] - ::1 - ok | ||
[2023-06-27 22:33:09] - ::1 - ok | ||
[2023-06-27 22:41:53] - ::1 - ok | ||
[2023-06-27 22:42:00] - ::1 - ok | ||
[2023-06-27 22:42:05] - ::1 - ok | ||
[2023-06-27 22:42:25] - ::1 - ok2 | ||
[2023-06-27 22:42:29] - ::1 - ok2 | ||
[2023-06-27 22:43:13] - ::1 - ok2 | ||
[2023-06-27 22:43:22] - ::1 - ok2 | ||
[2023-06-27 22:56:02] - ::1 - ok | ||
[2023-06-27 22:56:35] - ::1 - ok | ||
[2023-06-27 23:18:03] - ::1 - ok | ||
[2023-06-27 23:18:10] - ::1 - ok | ||
[2023-06-27 23:22:28] - ::1 - ok | ||
[2023-06-27 23:24:39] - ::1 - ok | ||
[2023-06-27 23:34:13] - ::1 - ok | ||
[2023-06-27 23:34:38] - ::1 - ok | ||
[2023-06-27 23:34:44] - ::1 - ok | ||
[2023-06-27 23:40:49] - ::1 - ok | ||
[2023-06-27 23:42:00] - ::1 - ok | ||
[2023-06-27 23:42:23] - ::1 - ok | ||
[2023-06-27 23:53:33] - ::1 - ok | ||
[2023-06-27 23:53:39] - ::1 - ok | ||
[2023-06-27 23:53:44] - ::1 - ok2 | ||
[2023-06-27 23:53:48] - ::1 - ok3 | ||
[2023-06-27 23:54:17] - ::1 - ok3 | ||
[2023-06-28 00:02:40] - ::1 - ok3 | ||
[2023-06-28 00:03:30] - ::1 - ok3 | ||
[2023-06-28 00:03:39] - ::1 - ok3 | ||
[2023-06-28 00:04:48] - ::1 - ok3 | ||
[2023-06-28 00:04:55] - ::1 - ok | ||
[2023-06-28 00:05:12] - ::1 - ok | ||
[2023-06-28 00:06:18] - ::1 - ok | ||
[2023-06-28 00:07:34] - ::1 - ok | ||
[2023-06-28 00:08:14] - ::1 - ok | ||
[2023-06-28 00:09:18] - ::1 - ok | ||
[2023-06-28 00:11:58] - ::1 - ok | ||
[2023-06-28 00:12:10] - ::1 - ok | ||
[2023-06-28 00:12:25] - ::1 - ok | ||
|
||
IP: ::1 | ||
Date: 2023-06-28 21:29:37 | ||
Url: ok | ||
Task execution time: 0.00034403800964355 | ||
Execution time all process: 0.00059103965759277 | ||
-------------------------------------- | ||
IP: ::1 | ||
Date: 2023-06-28 21:29:38 | ||
Url: ok | ||
Task execution time: 0.00025391578674316 | ||
Execution time all process: 0.00061893463134766 | ||
-------------------------------------- | ||
IP: ::1 | ||
Date: 2023-06-28 21:29:40 | ||
Url: ok | ||
Task execution time: 0.00021004676818848 | ||
Execution time all process: 0.00047111511230469 | ||
-------------------------------------- | ||
IP: ::1 | ||
Date: 2023-07-06 23:38:56 | ||
Url: ok/teste | ||
Task Time: 0.00036907196044922 | ||
Process Time: 0.00066304206848145 | ||
-------------------------------------- | ||
IP: ::1 | ||
Date: 2023-07-06 23:38:58 | ||
Url: ok/teste?dsad | ||
Task Time: 0.00039196014404297 | ||
Process Time: 0.00082707405090332 | ||
-------------------------------------- | ||
IP: ::1 | ||
Date: 2023-07-06 23:39:20 | ||
Url: ok/teste?teste=teste | ||
Task Time: 0.00055694580078125 | ||
Process Time: 0.00085186958312988 | ||
-------------------------------------- | ||
IP: ::1 | ||
Date: 2023-07-06 23:39:26 | ||
Url: ok/teste?teste=teste | ||
Task Time: 0.00027322769165039 | ||
Process Time: 0.00076913833618164 | ||
-------------------------------------- |
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 |
---|---|---|
@@ -1,18 +1,12 @@ | ||
<?php | ||
|
||
namespace Marrios\Router; | ||
use Closure; | ||
|
||
trait Group | ||
{ | ||
private bool $runGroup = false; | ||
|
||
public function group(Array $routes) : void | ||
public function group(Closure $closure) : void | ||
{ | ||
foreach($routes as $route) { | ||
$route->run(); | ||
} | ||
|
||
$this->runGroup = false; | ||
$this->middlewareAccess = true; | ||
$closure($this); | ||
} | ||
} |
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