I have created a configuration form in Grav's admin panel, and I want to extend/modify some of it's values on save. More precisely, I have a list form ...
I have created a configuration form in Grav's admin panel, and I want to extend/modify some of it's values on save. More precisely, I have a list form ...
I wish to create a new instance of SomeService which must be injected with some data which is not known when defining the service in Pimple. The follo ...
I am still trying to wrap my head around some of the aspects of the Dependency Injection design pattern using Pimple. I completely get the concept of ...
I have this dependency container for my database. I can use this in my controller like this $conn = $this->db; to query my database and return a ...
In this example I have classA and classB that I am using with pimple container. They both have a dependency on each other. However when setting this ...
How is it possible to pass a static class to an object via Dependency Injection? For example Carbon uses static methods: I have services that depe ...
I have had a fair amount of working with Silex and its dependency handling mechanism through Pimple. I am trying to extend the whole dependency inject ...
According to http://www.slimframework.com/docs/tutorial/first-app.html, the slim object is first created, and then the container is gotten and service ...
I have the following base lass for controller tests: At Silex 1.3 it worked fine, but after upgrade for v2 it fails at marked line. Once I comment ...
I'm working with silexphp/Pimple Dependency Injection Containers (DIC) and am unsure how to handle what would be a classic Factory pattern. Example: ...
I am using the factory method of Pimple, but it's returning same instance every time. It's the exact behavior I don't expect given the definition o ...
I have the following code in an application powered by Silex: $uknownObj being a dependency injection container. I know that unkownRef is of insta ...
In Pimple 1.0 I used to be able to share class instances like this: This now seems to be deprecated and I am unable to find what is the new way of ...
I am trying to install Pimple in my project following https://github.com/silexphp/Pimple readme file. Error message I receive is: My composer.jso ...
So I've just integrated Pimple into a project and the situation I'm in now is that I have a file at: With 400+ of these in it: My question is: I ...
So I've been using the Valitron Library to validate posted forms mostly and have run into some issues. The constructor accepts the data to be validat ...
Looking at the Pimple source code I found that it is storing objects and their ids in two different arrays: And then: And finally: I've also ...
I'm currently creating an application using silex 1.3. I want to use the dflydev doctrine orm service provider. For this service provider pimple &g ...
So I have a controller which I have added its dependencies with Pimple like this: And when I go to the URL of any action in this controller it just ...
I have this trait I have this code using it (via an App class) What I'm seeing is that the first var_dump result is an array, and the second is ...