-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#345 - Implement specialised file route
A file route is absolute if the path of the route is a fully qualified file path
- Loading branch information
1 parent
690e7e3
commit 8b0d487
Showing
2 changed files
with
34 additions
and
12 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
22 changes: 22 additions & 0 deletions
22
code/site/components/com_pages/dispatcher/router/route/file.php
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,22 @@ | ||
<?php | ||
/** | ||
* Joomlatools Pages | ||
* | ||
* @copyright Copyright (C) 2018 Johan Janssens and Timble CVBA. (http://www.timble.net) | ||
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> | ||
* @link https://github.com/joomlatools/joomlatools-pages for the canonical source repository | ||
*/ | ||
|
||
/** | ||
* Router File Route | ||
* | ||
* @author Johan Janssens <https://github.com/johanjanssens> | ||
* @package Koowa\Library\Dispatcher\Router\Route | ||
*/ | ||
class ComPagesDispatcherRouterRouteFile extends ComPagesDispatcherRouterRouteAbstract | ||
{ | ||
public function isAbsolute() | ||
{ | ||
return file_exists($this->getPath()); | ||
} | ||
} |