bytic /
router
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Nip\Router\Tests\Fixtures\Application\Library; |
||
| 4 | |||
| 5 | /** |
||
| 6 | * Class Application |
||
| 7 | * @package Nip\Router\Tests\Fixtures\Application\Library |
||
| 8 | */ |
||
| 9 | class Application |
||
| 10 | { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Determine if the application routes are cached. |
||
| 14 | * |
||
| 15 | * @return bool |
||
| 16 | */ |
||
| 17 | public function routesAreCached() |
||
| 18 | { |
||
| 19 | return ($this->getCachedRoutesPath()); |
||
|
0 ignored issues
–
show
Bug
Best Practice
introduced
by
Loading history...
|
|||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Get the path to the routes cache file. |
||
| 24 | * |
||
| 25 | * @return string |
||
| 26 | */ |
||
| 27 | public function getCachedRoutesPath() |
||
| 28 | { |
||
| 29 | return $this->basePath() . '/bootstrap/cache/routes'; |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | public function path() |
||
| 36 | { |
||
| 37 | return $this->basePath() . '/application'; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | public function basePath() |
||
| 44 | { |
||
| 45 | return TEST_FIXTURE_PATH; |
||
| 46 | } |
||
| 47 | } |
||
| 48 |