issues Search Results · repo:thephpleague/container language:PHP
Filter by
127 results
(81 ms)127 results
inthephpleague/container (press backspace or delete to remove)I m not sure the title is self-explanatory...
Since a picture is worth a thousand words, here is an example (with a few files):
class Logger
{
public function log(string $message): void
{
...
Arcesilas
- 2
- Opened on Nov 30, 2024
- #266
This may admittedly be a misunderstanding on my part regarding the expected behavior of this library.
See this branch. I ve tried running the test case that it adds against the 4.x branch, the 4.2.3 tag, ...
elazar
- 3
- Opened on Oct 26, 2024
- #265
Not sure what the issue is here exactly, but the unit tests (for the 4.x branch) currently fail on PHP 8.1 or higher:
PHP 8.0
PHPUnit 8.5.40 by Sebastian Bergmann and contributors.
Runtime: PHP ...
leewillis77
- 1
- Opened on Oct 14, 2024
- #264
Hi;
I m just wondering if the 4.x branch will provide support for PHP 8.4 when available. Currently v4.2.2 generates a
number of warnings due to the deprecation of implicitly null types
(https://wiki.php.net/rfc/deprecate-implicitly-nullable-types). ...
leewillis77
- 1
- Opened on Oct 14, 2024
- #262
AlessandroAmos
- 5
- Opened on Apr 12, 2023
- #251
Hello ✋ ,
Based on your example of the register method of the service provider, we need to explicitly define
dependencies/arguments to add the class to the container.
public function provides(string ...
creative-andrew
- 1
- Opened on Jan 22, 2023
- #250
I had made an error with putting a class in a directory which didn t match it s PSR-4 namespace. I had added this class
to the container using ClassName::class
Upon attempting to resolve it, the definition ...
carnage
- 1
- Opened on Jan 14, 2023
- #249
I tried using ReflectionDelegate to achieve auto-wiring and it works mostly great. The issue occurs when I register some
services as shared – then they won’t be autowired any more.
See the following simplified ...
jtojnar
- 1
- Opened on Nov 15, 2022
- #247
How could I swap or replace an object added to container?
The idea is swap a concrete object, use a mock instead original object.
Thanks 🙏
barbosa89
- 1
- Opened on Sep 27, 2022
- #246
We have a big application that has a lot of service definitions registered on the container. In combination with a lot
of routes on a Slim 3 application, this causes has a huge impact on our performance ...
mrtus
- 6
- Opened on Jul 27, 2022
- #244

Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Restrict your search to the title by using the in:title qualifier.
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.