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

Recomended Way To Put Code Swap out IoC #1

Open
fer-ri opened this issue Jul 18, 2014 · 0 comments
Open

Recomended Way To Put Code Swap out IoC #1

fer-ri opened this issue Jul 18, 2014 · 0 comments

Comments

@fer-ri
Copy link

fer-ri commented Jul 18, 2014

Hi,

whats the recomended way to put this code?

App::instance('config', function($app){
    $loader = $app->getConfigLoader();
    $writer = October\Rain\Config\FileWriter($loader, $app['path'].'/config');
    return new October\Rain\Config\Repository($loader, $writer, $app['env']);
})

Maybe in App::filter() ?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant