Skip to content

Commit 3d1d923

Browse files
committed
Upd namespace
1 parent 7ca9d0c commit 3d1d923

12 files changed

+26
-26
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
### Installation
3535

3636
```bash
37-
composer req vpodorozh/magento-cli-auto-proxy:*
37+
composer req run_as_root/magento-cli-auto-proxy:*
3838
```
3939

4040
## Roadmap
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0"?>
22
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
33
<preference for="Magento\Framework\ObjectManager\Config\Reader\Dom"
4-
type="Vpodorozh\CliConstructorArgAutoProxy\Preference\Framework\ObjectManager\Config\Reader\Dom\Interceptor" />
4+
type="RunAsRoot\CliConstructorArgAutoProxy\Preference\Framework\ObjectManager\Config\Reader\Dom\Interceptor" />
55
</config>

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "vpodorozh/magento-cli-auto-proxy",
2+
"name": "run_as_root/magento-cli-auto-proxy",
33
"description": "Makes all Magento CLI commands construct dependencies be injected as Proxy.",
44
"type": "magento2-component",
55
"require": {
@@ -10,7 +10,7 @@
1010
},
1111
"autoload": {
1212
"psr-4": {
13-
"Vpodorozh\\CliConstructorArgAutoProxy\\": "lib"
13+
"RunAsRoot\\CliConstructorArgAutoProxy\\": "lib"
1414
}
1515
},
1616
"extra": {

lib/Enum/ProxyClassEntityInterfaceEnum.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
declare(strict_types=1);
33

4-
namespace Vpodorozh\CliConstructorArgAutoProxy\Enum;
4+
namespace RunAsRoot\CliConstructorArgAutoProxy\Enum;
55

66
interface ProxyClassEntityInterfaceEnum
77
{

lib/Exception/ClassIsNotEligibleForProxyException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
declare(strict_types=1);
33

4-
namespace Vpodorozh\CliConstructorArgAutoProxy\Exception;
4+
namespace RunAsRoot\CliConstructorArgAutoProxy\Exception;
55

66
use Exception;
77

lib/Mapper/ProxiedConstructArgsToDiConfigMapper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
declare(strict_types=1);
33

4-
namespace Vpodorozh\CliConstructorArgAutoProxy\Mapper;
4+
namespace RunAsRoot\CliConstructorArgAutoProxy\Mapper;
55

66
class ProxiedConstructArgsToDiConfigMapper
77
{

lib/Plugin/Dom/EnrichCliConfigWithProxyPlugin.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22
declare(strict_types=1);
33

4-
namespace Vpodorozh\CliConstructorArgAutoProxy\Plugin\Dom;
4+
namespace RunAsRoot\CliConstructorArgAutoProxy\Plugin\Dom;
55

66
use Psr\Log\LoggerInterface;
77
use ReflectionException;
8-
use Vpodorozh\CliConstructorArgAutoProxy\Service\EnrichCliConfigWithProxyService;
8+
use RunAsRoot\CliConstructorArgAutoProxy\Service\EnrichCliConfigWithProxyService;
99

1010
class EnrichCliConfigWithProxyPlugin
1111
{

lib/Preference/Framework/ObjectManager/Config/Reader/Dom/Interceptor.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22
declare(strict_types=1);
33

4-
namespace Vpodorozh\CliConstructorArgAutoProxy\Preference\Framework\ObjectManager\Config\Reader\Dom;
4+
namespace RunAsRoot\CliConstructorArgAutoProxy\Preference\Framework\ObjectManager\Config\Reader\Dom;
55

66
use Magento\Framework\App\ObjectManager;
77
use Magento\Framework\ObjectManager\Config\Reader\Dom as OriginDom;
8-
use Vpodorozh\CliConstructorArgAutoProxy\Plugin\Dom\EnrichCliConfigWithProxyPlugin;
8+
use RunAsRoot\CliConstructorArgAutoProxy\Plugin\Dom\EnrichCliConfigWithProxyPlugin;
99

1010
class Interceptor extends OriginDom
1111
{

lib/README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ Entry point of functionality is based on DI config reader that is used in both c
2323

2424
### Plugins
2525

26-
#### `\Vpodorozh\CliConstructorArgAutoProxy\Plugin\Dom\EnrichCliConfigWithProxyPlugin`
26+
#### `\RunAsRoot\CliConstructorArgAutoProxy\Plugin\Dom\EnrichCliConfigWithProxyPlugin`
2727
* responsible for enriching DI config with Proxies for CLI command constructor arguments;
2828
* executed after DI config reading;
2929
* plugin is executed in not trivial way - via preference on DOM config reader of DI (see section bellow for more details)
30-
* Caller class: `\Vpodorozh\CliConstructorArgAutoProxy\Preference\Framework\ObjectManager\Config\Reader\Dom\Interceptor`
30+
* Caller class: `\RunAsRoot\CliConstructorArgAutoProxy\Preference\Framework\ObjectManager\Config\Reader\Dom\Interceptor`
3131

3232
### Preferences
3333

@@ -36,27 +36,27 @@ Entry point of functionality is based on DI config reader that is used in both c
3636
| Magento\Framework\ObjectManager\Config\Reader\Dom | ...\Preference\Framework\ObjectManager\Config\Reader\Dom\Interceptor |
3737

3838

39-
#### `\Vpodorozh\CliConstructorArgAutoProxy\Preference\Framework\ObjectManager\Config\Reader\Dom\Interceptor`
39+
#### `\RunAsRoot\CliConstructorArgAutoProxy\Preference\Framework\ObjectManager\Config\Reader\Dom\Interceptor`
4040
Workaround for plugin execution.
4141
This override has the same purpose as regular Magento 2 Interceptors - hook for calling plugins.
4242
It is not possible to define plugin over DOM config reader, as it is created before Magento plugin functionality starts.
4343
Preference is the only way to hook in.
4444

4545
### Services
4646

47-
#### `\Vpodorozh\CliConstructorArgAutoProxy\Service\EnrichCliConfigWithProxyService`
47+
#### `\RunAsRoot\CliConstructorArgAutoProxy\Service\EnrichCliConfigWithProxyService`
4848
Enrich provided DI config with proxies for CLI class commands only.
4949

50-
#### `\Vpodorozh\CliConstructorArgAutoProxy\Service\GetProxiedConstructArgsConfigService`
50+
#### `\RunAsRoot\CliConstructorArgAutoProxy\Service\GetProxiedConstructArgsConfigService`
5151
Receives CLI command constructor arguments types and reformat them to Proxy types.
5252
Using `IsClassEligibleForProxyValidator` to determine is class eligible to be Proxied.
5353

5454
### Validator
5555

56-
#### `\Vpodorozh\CliConstructorArgAutoProxy\Validator\IsClassEligibleForProxyValidator`
56+
#### `\RunAsRoot\CliConstructorArgAutoProxy\Validator\IsClassEligibleForProxyValidator`
5757
Check is Proxy applicable for this specific class.
5858

5959
### Mapper
6060

61-
#### `\Vpodorozh\CliConstructorArgAutoProxy\Mapper\ProxiedConstructArgsToDiConfigMapper`
61+
#### `\RunAsRoot\CliConstructorArgAutoProxy\Mapper\ProxiedConstructArgsToDiConfigMapper`
6262
Adds Proxy DI configs for specific CLI class command to DI configs pool.

lib/Service/EnrichCliConfigWithProxyService.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22
declare(strict_types=1);
33

4-
namespace Vpodorozh\CliConstructorArgAutoProxy\Service;
4+
namespace RunAsRoot\CliConstructorArgAutoProxy\Service;
55

66
use Magento\Framework\Code\Reader\ClassReaderInterface;
77
use Magento\Framework\Console\CommandListInterface;
88
use ReflectionException;
9-
use Vpodorozh\CliConstructorArgAutoProxy\Mapper\ProxiedConstructArgsToDiConfigMapper;
9+
use RunAsRoot\CliConstructorArgAutoProxy\Mapper\ProxiedConstructArgsToDiConfigMapper;
1010

1111
class EnrichCliConfigWithProxyService
1212
{

lib/Service/GetProxiedConstructArgsConfigService.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22
declare(strict_types=1);
33

4-
namespace Vpodorozh\CliConstructorArgAutoProxy\Service;
4+
namespace RunAsRoot\CliConstructorArgAutoProxy\Service;
55

6-
use Vpodorozh\CliConstructorArgAutoProxy\Enum\ProxyClassEntityInterfaceEnum;
7-
use Vpodorozh\CliConstructorArgAutoProxy\Validator\IsClassEligibleForProxyValidator;
6+
use RunAsRoot\CliConstructorArgAutoProxy\Enum\ProxyClassEntityInterfaceEnum;
7+
use RunAsRoot\CliConstructorArgAutoProxy\Validator\IsClassEligibleForProxyValidator;
88

99
class GetProxiedConstructArgsConfigService
1010
{

lib/Validator/IsClassEligibleForProxyValidator.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22
declare(strict_types=1);
33

4-
namespace Vpodorozh\CliConstructorArgAutoProxy\Validator;
4+
namespace RunAsRoot\CliConstructorArgAutoProxy\Validator;
55

6-
use Vpodorozh\CliConstructorArgAutoProxy\Enum\ProxyClassEntityInterfaceEnum;
7-
use Vpodorozh\CliConstructorArgAutoProxy\Exception\ClassIsNotEligibleForProxyException;
6+
use RunAsRoot\CliConstructorArgAutoProxy\Enum\ProxyClassEntityInterfaceEnum;
7+
use RunAsRoot\CliConstructorArgAutoProxy\Exception\ClassIsNotEligibleForProxyException;
88

99
class IsClassEligibleForProxyValidator
1010
{

0 commit comments

Comments
 (0)