Skip to content

Commit 2c95e2f

Browse files
authored
Merge pull request magento#7009 from idsergiu/patch-3
remove leading backslash when importing namespaces
2 parents 3f1e22b + 87186c3 commit 2c95e2f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/guides/v2.3/extension-dev-guide/build/component-registration.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Avoid using "Ui" for your custom module name because the <code>%Vendor%_Ui</code
2222
### Example
2323

2424
```php
25-
use \Magento\Framework\Component\ComponentRegistrar;
25+
use Magento\Framework\Component\ComponentRegistrar;
2626

2727
ComponentRegistrar::register(ComponentRegistrar::MODULE, 'Magento_AdminNotification', __DIR__);
2828
```
@@ -40,7 +40,7 @@ Here `<area>` is the functional area of the module (frontend, controller, and so
4040
### Example
4141

4242
```php
43-
use \Magento\Framework\Component\ComponentRegistrar;
43+
use Magento\Framework\Component\ComponentRegistrar;
4444

4545
ComponentRegistrar::register(ComponentRegistrar::THEME, 'frontend/Magento/luma', __DIR__);
4646
```
@@ -58,7 +58,7 @@ Here `<VendorName>` is the name of the company providing the package and `<packa
5858
### Example
5959

6060
```php
61-
use \Magento\Framework\Component\ComponentRegistrar;
61+
use Magento\Framework\Component\ComponentRegistrar;
6262

6363
ComponentRegistrar::register(ComponentRegistrar::LANGUAGE, 'magento_de_de', __DIR__);
6464
```
@@ -76,7 +76,7 @@ Here `<vendor>` is the name of the company providing the library. `<library_name
7676
### Example
7777

7878
```php
79-
use \Magento\Framework\Component\ComponentRegistrar;
79+
use Magento\Framework\Component\ComponentRegistrar;
8080

8181
ComponentRegistrar::register(ComponentRegistrar::LIBRARY, 'magento/framework', __DIR__);
8282
```
@@ -98,7 +98,7 @@ After you create your `registration.php` file and you are creating [your compone
9898
### Sample `registration.php` file {#register-sample}
9999

100100
```php
101-
use \Magento\Framework\Component\ComponentRegistrar;
101+
use Magento\Framework\Component\ComponentRegistrar;
102102

103103
ComponentRegistrar::register(ComponentRegistrar::MODULE, 'Magento_AdminNotification', __DIR__);
104104
```

0 commit comments

Comments
 (0)