- Merged some code added a long time ago to the extension

This commit is contained in:
Dave Mc Nicoll 2023-12-01 20:27:26 +00:00
parent 10fb17c7c3
commit b856743741
1 changed files with 3 additions and 3 deletions

View File

@ -3,14 +3,14 @@
namespace Picea\Extension;
use Notes\Route\Attribute\Object\Route;
use Picea\EventTrait;
use Picea\Compiler\Context;
use Picea\Event\Extension\{ UrlBuildAssetEvent, UrlBuildUrlEvent, UrlBuildRouteEvent, UrlRegisterRouteEvent };
class UrlExtension implements Extension, FunctionExtension {
use \Picea\EventTrait;
use EventTrait;
public const URLIZE_PATTERN_URL = <<<PATTERN
@ -68,7 +68,7 @@ PATTERN;
return "<?php echo \$picea->compiler->getExtensionFromToken('$token')->slug($arguments) ?>";
}
throw new \ParseExtensionException("Unknown token given $token in UrlExtension.");
throw new \Exception("Unknown token given $token in UrlExtension.");
}
public function exportFunctions(): array