Skip to content

Commit

Permalink
chore!: change namespace to Phetit\DependencyInjection
Browse files Browse the repository at this point in the history
  • Loading branch information
lombervid committed Jul 19, 2023
1 parent 670d799 commit 51ac08c
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 15 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Changed

- **Breaking:** change namespace from `Phetit\Container` to `Phetit\DependencyInjection`
- **Breaking:** rename package from `phetit/container` to `phetit/dependency-injection`

## [0.4.0] - 2023-07-14
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ composer require phetit/dependency-injection
Create an instance of `Container` class.

```php
use Phetit\Container\Container;
use Phetit\DependencyInjection\Container;

$container = new Container();
```
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
],
"autoload": {
"psr-4": {
"Phetit\\Container\\": "src/"
"Phetit\\DependencyInjection\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Phetit\\Container\\Tests\\": "tests/"
"Phetit\\DependencyInjection\\Tests\\": "tests/"
}
},
"require": {
Expand Down
6 changes: 3 additions & 3 deletions src/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

declare(strict_types=1);

namespace Phetit\Container;
namespace Phetit\DependencyInjection;

use Phetit\Container\Exception\EntryNotFoundException;
use Phetit\Container\Exception\InvalidEntryIdentifierException;
use Phetit\DependencyInjection\Exception\EntryNotFoundException;
use Phetit\DependencyInjection\Exception\InvalidEntryIdentifierException;
use Psr\Container\ContainerInterface;

class Container implements ContainerInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/ContainerException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Phetit\Container\Exception;
namespace Phetit\DependencyInjection\Exception;

use Psr\Container\ContainerExceptionInterface;
use RuntimeException;
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/EntryNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Phetit\Container\Exception;
namespace Phetit\DependencyInjection\Exception;

/**
* This exceptions is thrown when no-existent entry is requested.
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/InvalidEntryIdentifierException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Phetit\Container\Exception;
namespace Phetit\DependencyInjection\Exception;

use InvalidArgumentException;
use Psr\Container\ContainerExceptionInterface;
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/NotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Phetit\Container\Exception;
namespace Phetit\DependencyInjection\Exception;

use InvalidArgumentException;
use Psr\Container\NotFoundExceptionInterface;
Expand Down
8 changes: 4 additions & 4 deletions tests/ContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

declare(strict_types=1);

namespace Phetit\Container\Tests;
namespace Phetit\DependencyInjection\Tests;

use Closure;
use InvalidArgumentException;
use Phetit\Container\Container;
use Phetit\Container\Exception\EntryNotFoundException;
use Phetit\Container\Tests\Fixtures\Service;
use Phetit\DependencyInjection\Container;
use Phetit\DependencyInjection\Exception\EntryNotFoundException;
use Phetit\DependencyInjection\Tests\Fixtures\Service;
use PHPUnit\Framework\TestCase;

class ContainerTest extends TestCase
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixtures/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Phetit\Container\Tests\Fixtures;
namespace Phetit\DependencyInjection\Tests\Fixtures;

class Service
{
Expand Down

0 comments on commit 51ac08c

Please sign in to comment.