1 | <?php |
||
22 | class StringService implements SingletonInterface |
||
23 | { |
||
24 | use ExtendedFacadeInstanceTrait; |
||
25 | |||
26 | /** |
||
27 | * @var EnvironmentService |
||
28 | */ |
||
29 | protected $environmentService; |
||
30 | |||
31 | /** |
||
32 | * @param string $path If a string is given, it will be precessed by the extension relative path and returned. |
||
33 | * @return string |
||
34 | */ |
||
35 | public function getExtensionRelativePath($path) |
||
47 | |||
48 | /** |
||
49 | * @param string $path |
||
50 | * @return string |
||
51 | */ |
||
52 | public function getResourceRelativePath($path) |
||
68 | |||
69 | /** |
||
70 | * Sanitizes a string: lower case with dash separation. |
||
71 | * |
||
72 | * @param string $string |
||
73 | * @return string |
||
74 | */ |
||
75 | public function sanitizeString($string) |
||
85 | |||
86 | /** |
||
87 | * @param EnvironmentService $environmentService |
||
88 | */ |
||
89 | public function injectEnvironmentService(EnvironmentService $environmentService) |
||
93 | } |
||
94 |