Skip to content

Commit 2760781

Browse files
committed
[DependencyInjection] Prepare for 2.x:
- Removed GitHub workflow; - Moved all classes to root; - Renamed namespace: component replaced with framework; - Changed composer type to micro-library;
1 parent 0c7c0ae commit 2760781

13 files changed

+18
-172
lines changed

.github/workflows/.editorconfig

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/workflows/ci.yaml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/workflows/static.yaml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.php-cs-fixer.dist.php

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/Container.php renamed to Container.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Micro\Component\DependencyInjection;
12+
namespace Micro\Framework\DependencyInjection;
1313

14-
use Micro\Component\DependencyInjection\Exception\ServiceNotRegisteredException;
15-
use Micro\Component\DependencyInjection\Exception\ServiceRegistrationException;
14+
use Micro\Framework\DependencyInjection\Exception\ServiceNotRegisteredException;
15+
use Micro\Framework\DependencyInjection\Exception\ServiceRegistrationException;
1616
use Psr\Container\ContainerInterface;
1717

1818
/**

src/ContainerDecoratorInterface.php renamed to ContainerDecoratorInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Micro\Component\DependencyInjection;
12+
namespace Micro\Framework\DependencyInjection;
1313

1414
interface ContainerDecoratorInterface
1515
{

src/ContainerRegistryInterface.php renamed to ContainerRegistryInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Micro\Component\DependencyInjection;
12+
namespace Micro\Framework\DependencyInjection;
1313

1414
interface ContainerRegistryInterface
1515
{

src/Exception/ServiceNotRegisteredException.php renamed to Exception/ServiceNotRegisteredException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Micro\Component\DependencyInjection\Exception;
12+
namespace Micro\Framework\DependencyInjection\Exception;
1313

1414
use Psr\Container\NotFoundExceptionInterface;
1515

src/Exception/ServiceRegistrationException.php renamed to Exception/ServiceRegistrationException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Micro\Component\DependencyInjection\Exception;
12+
namespace Micro\Framework\DependencyInjection\Exception;
1313

1414
use Psr\Container\ContainerExceptionInterface;
1515

tests/Unit/ContainerTest.php renamed to Tests/Unit/ContainerTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Micro\Component\DependencyInjection\Tests;
12+
namespace Micro\Framework\DependencyInjection\Tests;
1313

14-
use Micro\Component\DependencyInjection\Container;
15-
use Micro\Component\DependencyInjection\Exception\ServiceNotRegisteredException;
16-
use Micro\Component\DependencyInjection\Exception\ServiceRegistrationException;
14+
use Micro\Framework\DependencyInjection\Container;
15+
use Micro\Framework\DependencyInjection\Exception\ServiceNotRegisteredException;
16+
use Micro\Framework\DependencyInjection\Exception\ServiceRegistrationException;
1717
use PHPUnit\Framework\TestCase;
1818

1919
class ContainerTest extends TestCase

0 commit comments

Comments
 (0)