-
-
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 #208 from WebFiori/dev
Refactoring class `Router`
- Loading branch information
Showing
3 changed files
with
427 additions
and
114 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,19 @@ | ||
<?php | ||
|
||
namespace app\apis; | ||
|
||
use webfiori\http\Response; | ||
|
||
class RoutingTestClass { | ||
public function __construct(string $param = null, string $second = null) { | ||
Response::write("I'm inside the class."); | ||
} | ||
public function doSomething() { | ||
Response::clear(); | ||
Response::write("I'm doing something."); | ||
} | ||
public function doSomethingExtra(string $p1 = null, string $p2 = null) { | ||
Response::clear(); | ||
Response::write("I'm doing something."); | ||
} | ||
} |
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.