123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- namespace OC\Template;
- class ResourceNotFoundException extends \LogicException {
- protected $resource;
- protected $webPath;
-
- public function __construct($resource, $webPath) {
- parent::__construct('Resource not found');
- $this->resource = $resource;
- $this->webPath = $webPath;
- }
-
- public function getResourcePath() {
- return $this->webPath . '/' . $this->resource;
- }
- }
|