Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allowing anything implementing Aura\Di\ContainerConfigInterface to be…
… loaded
- Loading branch information
1 parent
fce172e
commit 24652be
Showing
3 changed files
with
40 additions
and
10 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
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,13 @@ | ||
<?php | ||
namespace Cadre\Module\Sample; | ||
|
||
use Aura\Di\Container; | ||
use Aura\Di\ContainerConfig; | ||
|
||
class Config extends ContainerConfig | ||
{ | ||
public function define(Container $di) | ||
{ | ||
$di->params[Value::class]['value'] = 'required'; | ||
} | ||
} |