Skip to content

Commit 0e4f8fa

Browse files
authored
Rename package name of the DependencyInjection to DI (#8)
1 parent 77c2312 commit 0e4f8fa

40 files changed

Lines changed: 124 additions & 123 deletions

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"aether/crypto": "self.version",
3333
"aether/database": "self.version",
3434
"aether/dependency-injection": "self.version",
35+
"aether/di": "self.version",
3536
"aether/entity": "self.version",
3637
"aether/events": "self.version",
3738
"aether/filesystem": "self.version",
@@ -57,8 +58,8 @@
5758
"Aether\\Config\\": "packages/Config/src/",
5859
"Aether\\Contracts\\": "packages/Contracts/",
5960
"Aether\\Crypto\\": "packages/Crypto/src/",
61+
"Aether\\DI\\": "packages/DI/src/",
6062
"Aether\\Database\\": "packages/Database/src/",
61-
"Aether\\DependencyInjection\\": "packages/DependencyInjection/src/",
6263
"Aether\\Entity\\": "packages/Entity/src/",
6364
"Aether\\Events\\": "packages/Events/src/",
6465
"Aether\\Filesystem\\": "packages/Filesystem/src/",
@@ -74,8 +75,8 @@
7475
"Aether\\Tests\\Clock\\": "packages/Clock/tests/",
7576
"Aether\\Tests\\Config\\": "packages/Config/tests/",
7677
"Aether\\Tests\\Crypto\\": "packages/Crypto/tests/",
78+
"Aether\\Tests\\DI\\": "packages/DI/tests/",
7779
"Aether\\Tests\\Database\\": "packages/Database/tests/",
78-
"Aether\\Tests\\DependencyInjection\\": "packages/DependencyInjection/tests/",
7980
"Aether\\Tests\\Entity\\": "packages/Entity/tests/",
8081
"Aether\\Tests\\Events\\": "packages/Events/tests/",
8182
"Aether\\Tests\\Filesystem\\": "packages/Filesystem/tests/",

packages/DependencyInjection/.github/workflows/close-pull-request.yml renamed to packages/DI/.github/workflows/close-pull-request.yml

File renamed without changes.

packages/DI/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Aether DI Component

packages/DependencyInjection/composer.json renamed to packages/DI/composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "aether/dependency-injection",
3-
"description": "The Aether dependency injection package.",
2+
"name": "aether/di",
3+
"description": "The Aether di package.",
44
"license": "MIT",
55
"type": "library",
66
"support": {
@@ -17,12 +17,12 @@
1717
"minimum-stability": "dev",
1818
"autoload": {
1919
"psr-4": {
20-
"Aether\\DependencyInjection\\": "src/"
20+
"Aether\\DI\\": "src/"
2121
}
2222
},
2323
"autoload-dev": {
2424
"psr-4": {
25-
"Aether\\Tests\\DependencyInjection\\": "tests/"
25+
"Aether\\Tests\\DI\\": "tests/"
2626
}
2727
},
2828
"config": {

packages/DependencyInjection/src/Container.php renamed to packages/DI/src/Container.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* of the MIT license. See the LICENSE file for details.
1010
*/
1111

12-
namespace Aether\DependencyInjection;
12+
namespace Aether\DI;
1313

1414
use function array_key_exists;
1515

@@ -22,17 +22,17 @@
2222
use function is_string;
2323
use function property_exists;
2424

25-
use Aether\DependencyInjection\Definition\Binding\Alias;
26-
use Aether\DependencyInjection\Definition\Binding\Factory;
27-
use Aether\DependencyInjection\Definition\Binding\Scalar;
28-
use Aether\DependencyInjection\Definition\Binding\Shared;
29-
use Aether\DependencyInjection\Definition\Binding\WeakReference;
30-
31-
use Aether\DependencyInjection\Definition\Exception\CircularDependencyException;
32-
use Aether\DependencyInjection\Definition\Resolver\DefinitionResolver;
33-
use Aether\DependencyInjection\Definition\State;
34-
use Aether\DependencyInjection\Exception\EntryNotFoundException;
35-
use Aether\DependencyInjection\Invoker\Invoker;
25+
use Aether\DI\Definition\Binding\Alias;
26+
use Aether\DI\Definition\Binding\Factory;
27+
use Aether\DI\Definition\Binding\Scalar;
28+
use Aether\DI\Definition\Binding\Shared;
29+
use Aether\DI\Definition\Binding\WeakReference;
30+
31+
use Aether\DI\Definition\Exception\CircularDependencyException;
32+
use Aether\DI\Definition\Resolver\DefinitionResolver;
33+
use Aether\DI\Definition\State;
34+
use Aether\DI\Exception\EntryNotFoundException;
35+
use Aether\DI\Invoker\Invoker;
3636

3737
class Container implements ContainerInterface
3838
{

packages/DependencyInjection/src/ContainerInterface.php renamed to packages/DI/src/ContainerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* of the MIT license. See the LICENSE file for details.
1010
*/
1111

12-
namespace Aether\DependencyInjection;
12+
namespace Aether\DI;
1313

1414
use Psr\Container\ContainerInterface as BaseContainerInterface;
1515

packages/DependencyInjection/src/Definition/Binding/Alias.php renamed to packages/DI/src/Definition/Binding/Alias.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
* of the MIT license. See the LICENSE file for details.
1010
*/
1111

12-
namespace Aether\DependencyInjection\Definition\Binding;
12+
namespace Aether\DI\Definition\Binding;
1313

14-
use Aether\DependencyInjection\Definition\Definition;
14+
use Aether\DI\Definition\Definition;
1515

1616
final readonly class Alias implements Definition
1717
{

packages/DependencyInjection/src/Definition/Binding/Factory.php renamed to packages/DI/src/Definition/Binding/Factory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
* of the MIT license. See the LICENSE file for details.
1010
*/
1111

12-
namespace Aether\DependencyInjection\Definition\Binding;
12+
namespace Aether\DI\Definition\Binding;
1313

1414
use Closure;
15-
use Aether\DependencyInjection\Definition\Definition;
15+
use Aether\DI\Definition\Definition;
1616

1717
final readonly class Factory implements Definition
1818
{

packages/DependencyInjection/src/Definition/Binding/Scalar.php renamed to packages/DI/src/Definition/Binding/Scalar.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
* of the MIT license. See the LICENSE file for details.
1010
*/
1111

12-
namespace Aether\DependencyInjection\Definition\Binding;
12+
namespace Aether\DI\Definition\Binding;
1313

14-
use Aether\DependencyInjection\Definition\Definition;
14+
use Aether\DI\Definition\Definition;
1515

1616
final readonly class Scalar implements Definition
1717
{

0 commit comments

Comments
 (0)