wakanda - 2 weeks ago

Hi community !

With deployer and recipe of Laravel, he's come with this command : $ php artisan cache:config This generate a single file for performance but give errors : Each row with : "Closure::__set_state(array(..." I can solve this by remove : bootstrap/cache/config.php

If you have a better solution for fix it, i take ! :D Pyrocms : V.3.6

Answer

ryanthompson - 2 weeks ago

I am working on replacing closures with handler classes! So this will soon be resolved.

pooria - 2 weeks ago

@wakanda Hi. This is not related to Pyrocms. The problem is that Laravel does not support closures in config files:

https://github.com/laravel/framework/issues/9625

ryanthompson - 2 weeks ago

I am working on replacing closures with handler classes! So this will soon be resolved.

ryanthompson - 2 weeks ago

I have some work to do around route caching as well to make sure it's recompiled correctly when changes are made.

wakanda - 1 week ago

Thanks @pooria and @ryanthompson !

johnny5 - 1 week ago

Discussed at https://github.com/pyrocms/pyrocms/issues/4551 too.