Skip to content

Commit a902b9c

Browse files
author
Wazabii
committed
Name changes
1 parent b3d4e59 commit a902b9c

File tree

10 files changed

+25
-25
lines changed

10 files changed

+25
-25
lines changed

Container.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
declare(strict_types=1);
44

5-
namespace PHPFuse\Container;
6-
7-
use PHPFuse\Container\Interfaces\ContainerInterface;
8-
use PHPFuse\Container\Interfaces\FactoryInterface;
9-
use PHPFuse\DTO\Format\Arr;
10-
use PHPFuse\Container\Reflection;
11-
use PHPFuse\Container\Exceptions\NotFoundException;
12-
use PHPFuse\Container\Exceptions\ContainerException;
5+
namespace MaplePHP\Container;
6+
7+
use MaplePHP\Container\Interfaces\ContainerInterface;
8+
use MaplePHP\Container\Interfaces\FactoryInterface;
9+
use MaplePHP\DTO\Format\Arr;
10+
use MaplePHP\Container\Reflection;
11+
use MaplePHP\Container\Exceptions\NotFoundException;
12+
use MaplePHP\Container\Exceptions\ContainerException;
1313

1414
class Container implements ContainerInterface, FactoryInterface
1515
{

Exceptions/ContainerException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace PHPFuse\Container\Exceptions;
3+
namespace MaplePHP\Container\Exceptions;
44

55
use InvalidArgumentException;
6-
use PHPFuse\Container\Interfaces\ContainerExceptionInterface;
6+
use MaplePHP\Container\Interfaces\ContainerExceptionInterface;
77

88
/**
99
* Base interface representing a generic exception in a container.

Exceptions/NotFoundException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
namespace PHPFuse\Container\Exceptions;
3+
namespace MaplePHP\Container\Exceptions;
44

5-
use PHPFuse\Container\Interfaces\NotFoundExceptionInterface;
5+
use MaplePHP\Container\Interfaces\NotFoundExceptionInterface;
66
use RuntimeException;
77

88
/**

Interfaces/ContainerExceptionInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace PHPFuse\Container\Interfaces;
3+
namespace MaplePHP\Container\Interfaces;
44

55
use Throwable;
66

Interfaces/ContainerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace PHPFuse\Container\Interfaces;
5+
namespace MaplePHP\Container\Interfaces;
66

77
/**
88
* Describes the interface of a container that exposes methods to read its entries.

Interfaces/FactoryInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace PHPFuse\Container\Interfaces;
5+
namespace MaplePHP\Container\Interfaces;
66

77
/**
88
* The Factory Container Interface.

Interfaces/NotFoundExceptionInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace PHPFuse\Container\Interfaces;
3+
namespace MaplePHP\Container\Interfaces;
44

55
/**
66
* No entry was found in the container.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023 PHPFuse
3+
Copyright (c) 2023 MaplePHP
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11

22
# Container, Factories and the dependency injector
3-
PSR Container built for PHP Fuse framework
3+
PSR Container built for MaplePHP framework
44

55
Container, Factories and dependency injectors will help to make your PHP code more maintainable, flexible, and testable by reducing coupling between objects and centralizing the management of dependencies.
66

77
## Container
88
Containers allowing you to easily create and retrieve objects that are needed throughout your application.
99
```php
10-
use PHPFuse\Container\tests\TestClasses\TestClass;
10+
use MaplePHP\Container\tests\TestClasses\TestClass;
1111

1212
$container->set("test1", TestClass::class); // Will load TestClass
1313
$container->set("test2", TestClass::class, ["Test"]); // Will load TestClass and set argumnet to constructor
@@ -35,19 +35,19 @@ You can use the **Dependency injector** just like create any other container, as
3535
Take a look at this example
3636

3737
```php
38-
use PHPFuse\Container\tests\TestClasses\TestClass;
38+
use MaplePHP\Container\tests\TestClasses\TestClass;
3939
$container->set("uniqueKey", TestClass:class);
40-
// $container->set("uniqueKey", '\PHPFuse\Container\tests\Controllers\TestController'); // Same as above
40+
// $container->set("uniqueKey", '\MaplePHP\Container\tests\Controllers\TestController'); // Same as above
4141
$testController = $container->get("uniqueKey");
4242
echo $testController->start();
4343

4444
```
4545
The above code will load **TestController** and auto initialize the class **Test**.
4646

4747
```php
48-
namespace PHPFuse\Container\tests\Controllers;
48+
namespace MaplePHP\Container\tests\Controllers;
4949

50-
use PHPFuse\Container\tests\TestClasses\Test;
50+
use MaplePHP\Container\tests\TestClasses\Test;
5151

5252
class TestController {
5353

Reflection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
declare(strict_types=1);
44

5-
namespace PHPFuse\Container;
5+
namespace MaplePHP\Container;
66

77
use ReflectionClass;
88
use ReflectionMethod;
9-
use PHPFuse\Container\Exceptions\NotFoundException;
9+
use MaplePHP\Container\Exceptions\NotFoundException;
1010

1111
class Reflection
1212
{

0 commit comments

Comments
 (0)