- Merged some code added a long time ago to the extension
This commit is contained in:
		
							parent
							
								
									10fb17c7c3
								
							
						
					
					
						commit
						b856743741
					
				| @ -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 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user