-
Notifications
You must be signed in to change notification settings - Fork 14
Use assets folder to store cached assets and serve them directly #860
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| .DS_Store | ||
| .php-cs-fixer.cache | ||
|
|
||
| /assets/* | ||
| /backup/* | ||
| /cache/* | ||
| /logs/* | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -4,6 +4,7 @@ | |||||
|
|
||||||
| use Formwork\Http\FileResponse; | ||||||
| use Formwork\Http\Response; | ||||||
| use Formwork\Http\ResponseStatus; | ||||||
| use Formwork\Router\RouteParams; | ||||||
| use Formwork\Utils\FileSystem; | ||||||
| use Formwork\Utils\Path; | ||||||
|
|
@@ -15,6 +16,11 @@ final class AssetsController extends AbstractController | |||||
| */ | ||||||
| public function asset(RouteParams $routeParams): Response | ||||||
| { | ||||||
| if (!$routeParams->has('type')) { | ||||||
| trigger_error('The "assets" route without a "type" parameter is deprecated and will be removed in a future version', E_USER_DEPRECATED); | ||||||
|
||||||
| trigger_error('The "assets" route without a "type" parameter is deprecated and will be removed in a future version', E_USER_DEPRECATED); | |
| trigger_error('The "assets" route without a "type" parameter is deprecated since Formwork 1.x and will be removed in a future version', E_USER_DEPRECATED); |
Uh oh!
There was an error while loading. Please reload this page.