File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 22
33use Illuminate \Support \Facades \Facade ;
44
5+ /**
6+ * UrlProcessor Facade
7+ *
8+ * Provides a static interface to the UrlProcessor service for generating URLs,
9+ * managing document listings, and handling URL routing in EvolutionCMS.
10+ *
11+ * This facade allows you to generate friendly URLs for documents, manage
12+ * document and alias listings, and perform URL-related operations without
13+ * directly instantiating the UrlProcessor class.
14+ *
15+ * @package EvolutionCMS\Facades
16+ * @mixin \EvolutionCMS\UrlProcessor
17+ *
18+ * @example
19+ * ```php
20+ * // Generate a URL for a document
21+ * $url = UrlProcessor::makeUrl(123);
22+ *
23+ * // Generate URL with custom alias and parameters
24+ * $url = UrlProcessor::makeUrl(123, 'custom-alias', 'param=value');
25+ *
26+ * // Get document listing for URL routing
27+ * $listing = UrlProcessor::getFacadeRoot()->documentListing;
28+ *
29+ * // Get aliases mapping
30+ * $aliases = UrlProcessor::getAliases();
31+ * ```
32+ */
533class UrlProcessor extends Facade
634{
735 /**
You can’t perform that action at this time.
0 commit comments