CacheAdminController
class CacheAdminController extends BaseAdminController
The UsersAdminController class is the controller that handles all actions of the symfony cache management interface.
These actions are:
- Display cache management interface
- cleaning the production environment cache
- cleaning the admin environment cache
- cleaning the development environment cache
- cleaning the test environment cache
Properties
ControllersHelper | $helper | from BaseAdminController | |
string | $databasesDir | from BaseAdminController | |
string | $simulatorsDir | from BaseAdminController | |
string | $publicDir | from BaseAdminController | |
string | $viewsDir | from BaseAdminController | |
private array | $log |
Methods
Returns a JSON response formed with the data of a form and an error message.
Entry point for the route paths begining by /admin/cache/clear
Processes the clear action
Recursively removes a directory and its subdirectories
Realizes the cleaning of the cache
Details
in BaseAdminController at line 93
protected Response
errorResponse(array $form, string $error)
Returns a JSON response formed with the data of a form and an error message.
in BaseAdminController at line 113
protected
zip(array $contents)
Zip file creation function.
Makes zip files. Derivated from PhpMyAdmin package The $contents parameter is an array of associative array where keys are : - name: name of the zip - modtime: modification time - data: data to compress
in BaseAdminController at line 188
protected int
unix2DosTime(int $unixtime)
Converts unix time to MS DOS time
at line 79
Response
clearAction(Request $request, string $env = 'prod')
Entry point for the route paths begining by /admin/cache/clear
These route paths are :
- /admin/cache/clear
- /admin/cache/clear/{env}
at line 94
protected Response
runClear(Request $request, string $env)
Processes the clear action
at line 146
private void
rrmdir(string $dir, int $level)
Recursively removes a directory and its subdirectories
at line 176
private void
cc(string $cache_dir, string $name)
Realizes the cleaning of the cache