Skip to content

Commit 63259e5

Browse files
authored
Quote namespace
1 parent 3700351 commit 63259e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/using-core-functions/categories/implementing-categories-in-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ Whenever Joomla wants to execute the component it runs the services/provider.php
186186

187187
`$categories = ExampleComponent::$categories;``
188188

189-
The CategoryFactory `createCategory()` code will use the namespace which was passed into it (originally in services/provider.php above) and will try to instantiate a class <namespace>\Site\Service\Category, raising an exception if it does not exist. So you need to provide a file within your site area src/Service/Category.php similar to the following:
189+
The CategoryFactory `createCategory()` code will use the namespace which was passed into it (originally in services/provider.php above) and will try to instantiate a class `<namespace>\Site\Service\Category`, raising an exception if it does not exist. So you need to provide a file within your site area src/Service/Category.php similar to the following:
190190

191191
```php
192192
<?php

0 commit comments

Comments
 (0)