Skip to content

[7.x] Stubs follow up#31054

Merged
taylorotwell merged 2 commits intomasterfrom
stubs-follow-up
Jan 7, 2020
Merged

[7.x] Stubs follow up#31054
taylorotwell merged 2 commits intomasterfrom
stubs-follow-up

Conversation

@driesvints
Copy link
Copy Markdown
Member

This is a follow-up for #31052. It fixes the tests and replaces the used helpers by the already resolved Laravel instance. I had to update the MigrationCreator to make the tests pass.

{
$this->app->singleton('migration.creator', function ($app) {
return new MigrationCreator($app['files']);
return new MigrationCreator($app['files'], $app->basePath('stubs'));
Copy link
Copy Markdown
Contributor

@koenhoeijmakers koenhoeijmakers May 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change pretty much broke my package that relied on resolving the MigrationCreator (do believe my usage of this class wasn't perfect in any sense), is there a reason for the MigrationCreator to be bound to migration.creator instead of MigrationCreator::class which would make it resolveable from the container via IoC? @driesvints

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea

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

Successfully merging this pull request may close these issues.

3 participants