Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add container proxy #116

Merged
merged 44 commits into from
Mar 5, 2020
Merged
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
1fc7172
Add container proxy
yiiliveext Mar 1, 2020
b75ace8
Minor fix
yiiliveext Mar 1, 2020
0b8ab53
Fix proxy container
yiiliveext Mar 1, 2020
62e9e22
Minor fixes
yiiliveext Mar 2, 2020
af5328a
Refactor names
yiiliveext Mar 2, 2020
6d400bb
Add custom array-proxy config type
yiiliveext Mar 2, 2020
933f2c3
Rename collectData method
yiiliveext Mar 2, 2020
5673e09
Add result decoration ability
yiiliveext Mar 2, 2020
575cf8f
Add method decoration from params
yiiliveext Mar 2, 2020
303ef59
Refactor proxy data log
yiiliveext Mar 2, 2020
ef844ed
Fix class caching bug
yiiliveext Mar 2, 2020
238f22f
Allow multiple methods decorators
yiiliveext Mar 2, 2020
94fcbbd
Fix isActive method
yiiliveext Mar 2, 2020
45cc386
Fix composer.json
yiiliveext Mar 2, 2020
c4eecaa
Move classes to other packages
yiiliveext Mar 2, 2020
8e4582b
Fix composer.json
yiiliveext Mar 2, 2020
bead8aa
Fix composite container
yiiliveext Mar 2, 2020
9e1b67b
Add composite container proxy support
yiiliveext Mar 3, 2020
d396b1f
Add delegate interface
yiiliveext Mar 3, 2020
c630119
Add public constructor to container
yiiliveext Mar 3, 2020
1df7c9a
Fix root container
yiiliveext Mar 3, 2020
fbe6c88
Add phpdoc
yiiliveext Mar 3, 2020
e9a6e85
Remove static builder method
yiiliveext Mar 3, 2020
4cb3044
Fix tests
yiiliveext Mar 3, 2020
c1077eb
Fix container builder
yiiliveext Mar 3, 2020
3194749
Rename add providerd method
yiiliveext Mar 3, 2020
e4365e4
Fix addProviders method call
yiiliveext Mar 3, 2020
f168809
Rename withRootContainer method
yiiliveext Mar 4, 2020
f22c04c
Remove public modificator from container setters
yiiliveext Mar 4, 2020
7227a61
Refactor service provider
yiiliveext Mar 4, 2020
6c96ac9
A bit of refactoring
yiiliveext Mar 4, 2020
abb34db
Remove unused $delegateLookup parameter
samdark Mar 4, 2020
22e00da
Adjusted docs
samdark Mar 4, 2020
9b58c5f
Make containers classes final
yiiliveext Mar 4, 2020
9c3e574
Make delegateLookup protected
yiiliveext Mar 4, 2020
34fe6f8
Add dlegate lookup tests
yiiliveext Mar 4, 2020
0673178
Update readme
yiiliveext Mar 4, 2020
3788ad8
Fix readme typo
yiiliveext Mar 4, 2020
fa39f9f
Fix tests
yiiliveext Mar 4, 2020
f35b570
Readme fixes
samdark Mar 4, 2020
7fdb599
Add delegate proxy test
yiiliveext Mar 4, 2020
e8887c4
Remove comments, fix style
yiiliveext Mar 4, 2020
69ce62d
Fix CS [skip ci]
yiiliveext Mar 4, 2020
6c9c0c1
Test name adjusted
samdark Mar 5, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add public constructor to container
  • Loading branch information
yiiliveext committed Mar 3, 2020
commit c630119ac8e86b093c18f3ebf4147cfa3ef29f6f
8 changes: 6 additions & 2 deletions src/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,12 @@ class Container implements ContainerInterface, ContainerDelegateInterface
* @throws InvalidConfigException
* @throws NotInstantiableException
*/
private function __construct()
{
public function __construct(
array $definitions = [],
array $providers = []
) {
$this->setMultiple($definitions);
$this->registerServiceProviders($providers);
}

public static function getBuilder(): ContainerBuilder
Expand Down