You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 14, 2018. It is now read-only.
I just started moving a prototype app from Slim to Silex, and I started with this skeleton. It seems strange to load config after initializing the app, though. How are you supposed to configure service providers, Monolog for example, with this layout?
The text was updated successfully, but these errors were encountered:
Special cases like monolog or the web debug toolbar can are configured in the config file themselves as they are part of the environment. You can see it in the skeleton, the dev.php contains monolog, but not the prod.php file
Usually, none of the environment logic is required to register a service, however, and since the providers are lazy loaded in the service container, they will only be instantiated when you call them for the first time (and the config file will then be available to you).
I just started moving a prototype app from Slim to Silex, and I started with this skeleton. It seems strange to load config after initializing the app, though. How are you supposed to configure service providers, Monolog for example, with this layout?
The text was updated successfully, but these errors were encountered: