This repository has been archived by the owner on Jan 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The same behaviour we have in zend-servicemanager. Proper configuration should be: 'invokables' => [ Name\Service::class => Name\Service::class, ], or when we want to use alias: 'invokables' => [ 'alias' => Name\Service::class, ], then serivce will be available on: - alias: $container->get('alias'); - class name: $container->get(Name\Service::class); and it will be exactly the same instance.
- Loading branch information
1 parent
63575dc
commit 47587cb
Showing
2 changed files
with
26 additions
and
4 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