Skip to content

Commit

Permalink
Merge pull request #20 from abbadon1334/add-internal
Browse files Browse the repository at this point in the history
add @internal to some classes
  • Loading branch information
abbadon1334 authored Jul 30, 2019
2 parents cbe5764 + a028f6f commit 670583d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Handler/Contracts/AfterRoutableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public function setAfterRoute(callable $callable): void
/**
* @param App $app
* @param mixed ...$parameters
* @internal
*/
public function OnAfterRoute(App $app, ...$parameters): void
{
Expand Down
1 change: 1 addition & 0 deletions src/Handler/Contracts/BeforeRoutableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public function setBeforeRoute(callable $callable): void
/**
* @param App $app
* @param mixed ...$parameters
* @internal
*/
public function OnBeforeRoute(App $app, ...$parameters): void
{
Expand Down
4 changes: 4 additions & 0 deletions src/Handler/RoutedUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ public function onRoute(...$parameters): void
}

/**
* @internal
*
* @param App $app
* @param mixed ...$parameters
*
Expand All @@ -94,6 +96,8 @@ public function OnAfterRoute(App $app, ...$parameters): void
}

/**
* @internal
*
* @param App $app
* @param mixed ...$parameters
*/
Expand Down
4 changes: 3 additions & 1 deletion tests/RouterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ class RouterTest extends TestCase
{
public function tearDown(): void
{
@unlink(__DIR__.'/../demos/routes.cache');
if (file_exists(__DIR__.'/../demos/routes.cache')) {
unlink(__DIR__.'/../demos/routes.cache');
}
}

public function testSetBasePath()
Expand Down

0 comments on commit 670583d

Please sign in to comment.