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

Additional issue in last version 0.1.7 on Laravel 4 #84

Closed
martianoff opened this issue Jan 12, 2016 · 1 comment
Closed

Additional issue in last version 0.1.7 on Laravel 4 #84

martianoff opened this issue Jan 12, 2016 · 1 comment

Comments

@martianoff
Copy link

Command "php artisan asset:flush" returns

PHP Fatal error: Call to undefined function Stolz\Assets\Laravel\config() in /vendor/stolz/assets/src/Laravel/FlushPipelineCommand.php on line 69
{"error":{"type":"Symfony\Component\Debug\Exception\FatalErrorException","message":"Call to undefined function Stolz\Assets\Laravel\config()","file":"/vendor/stolz/assets/src/Laravel/FlushPipelineCommand.php","line":69}}

Previous version worked fine.

@Stolz
Copy link
Owner

Stolz commented Jan 13, 2016

As announced on December of 2014 Laravel 4 is no longer supported.

If you are still using Laravel 4 you you have a few options:

  • Use an old release of the library (i.e: composer require "stolz/assets:0.0.*") but you won't keep up to date with the latest work.
  • Use your own Laravel service provider.

A sample service provider and artisan command for Laravel 4 are provided. They both work at the time of writing this (version 0.1.8 of the library) but this may change in the future since I don't plan to maintain them.

To use them, in your config/app.php file, use Stolz\Assets\Laravel\LegacyServiceProvider instead of Stolz\Assets\Laravel\ServiceProvider.

The sample files will eventually be deleted so make sure you make a copy of them. In that case, also make sure you address them in the config/app.php using the proper namespace of your copy.

@Stolz Stolz closed this as completed Jan 13, 2016
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

2 participants