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

Utilize afterResolving for Laravel 6.10 and up #267

Merged
merged 1 commit into from May 8, 2020
Merged

Utilize afterResolving for Laravel 6.10 and up #267

merged 1 commit into from May 8, 2020

Conversation

axlon
Copy link
Contributor

@axlon axlon commented Jan 9, 2020

A fix was implemented in Laravel 6.10 making the framework no longer resolve the blade compiler on start up (laravel/framework#31009).

The following change utilizes this improvement by not calling the compiler directly if it's not yet been resolved.

@bakerkretzmar bakerkretzmar self-assigned this May 2, 2020
@bakerkretzmar bakerkretzmar added the in progress We're working on it label May 2, 2020
@bakerkretzmar bakerkretzmar removed their assignment May 2, 2020
@bakerkretzmar bakerkretzmar self-requested a review May 2, 2020 00:43
@bakerkretzmar
Copy link
Collaborator

Could we use callAfterResolving? Something like:

$this->callAfterResolving('blade.compiler', function (BladeCompiler $compiler) {
    $compiler->directive(/* ... */);
});

@axlon
Copy link
Contributor Author

axlon commented May 8, 2020

@bakerkretzmar I don't think so, because this would break compatibility with lower versions of Laravel that do not have that feature.

@bakerkretzmar
Copy link
Collaborator

Ahh right of course. Thanks!

@bakerkretzmar bakerkretzmar merged commit ace6f4c into tighten:master May 8, 2020
@bakerkretzmar bakerkretzmar removed the in progress We're working on it label Aug 14, 2020
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.

None yet

2 participants