-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
1,332 additions
and
826 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,4 @@ | |
/.idea | ||
|
||
/vendor | ||
composer.lock | ||
|
||
/.data | ||
/.new | ||
/.old | ||
composer.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,5 +34,8 @@ | |
"optimize-autoloader": true, | ||
|
||
"sort-packages": false | ||
}, | ||
"require-dev": { | ||
"symfony/var-dumper": "^5.4" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
namespace Gzhegow\Di\Container; | ||
|
||
|
||
class Container extends ContainerPsr | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
namespace Gzhegow\Di\Container; | ||
|
||
|
||
interface ContainerInterface extends ContainerPsrInterface | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
namespace Gzhegow\Di\Container; | ||
|
||
use Gzhegow\Di\DiInterface; | ||
|
||
|
||
class ContainerPsr10000 implements ContainerPsr10000Interface | ||
{ | ||
/** | ||
* @var DiInterface | ||
*/ | ||
protected $di; | ||
|
||
|
||
public function __construct(DiInterface $di) | ||
{ | ||
$this->di = $di; | ||
} | ||
|
||
|
||
public function getDi() : DiInterface | ||
{ | ||
return $this->di; | ||
} | ||
|
||
|
||
public function has($id) : bool | ||
{ | ||
return $this->di->has($id); | ||
} | ||
|
||
public function get($id) // : mixed | ||
{ | ||
return $this->di->get($id); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace Gzhegow\Di\Container; | ||
|
||
use Gzhegow\Di\DiInterface; | ||
use Psr\Container\ContainerInterface as PsrContainerInterface; | ||
|
||
|
||
interface ContainerPsr10000Interface extends PsrContainerInterface | ||
{ | ||
public function getDi() : DiInterface; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace Gzhegow\Di\Container; | ||
|
||
use Gzhegow\Di\DiInterface; | ||
use Psr\Container\ContainerInterface as PsrContainerInterface; | ||
|
||
|
||
interface ContainerPsrInterface extends PsrContainerInterface | ||
{ | ||
public function getDi() : DiInterface; | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.