Skip to content
Discussion options

You must be logged in to vote
$files = $this->app['files'];

$this->app->beforeResolving('command.controller.make', function ($abstract, $parameters, $container) {
    $container->bind('files', function() {
        return new Override;
    });
});

$this->app->afterResolving('command.controller.make', function ($command, $container) use($files) {
    $container->bind('files', function() use($files) {
        return $files;
    });
});

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dillingham
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant