LeKoala\DevToolkit\Tasks\RehashImagesTask
In case images are resized by an external utility file hash is not valid anymore
We need a way to rehash them
Synopsis
class RehashImagesTask
extends BuildTask
{
- // members
- protected string $title = "Rehash Images";
- private static string $segment = 'RehashImagesTask';
- // methods
- public void run()
- // Inherited methods from BuildTaskTools
- protected void increaseTimeLimitTo()
- protected void regenerateClassManifest()
- protected array getValidDataObjects()
- protected array getModules()
- protected HTTPRequest getRequest()
- protected void addOption()
- protected array askOptions()
- protected void message()
- protected void isDev()
- protected void isLive()
Hierarchy
Members
private
- $segment
protected
- $options — array
- $request — LeKoala\DevToolkit\SilverStripe\Control\HTTPRequest
- $title
Methods
public
Inherited from LeKoala\DevToolkit\BuildTaskTools
protected
- addOption() — Add options (to be called later with askOptions)
- askOptions() — Display a form with options
- getModules() — All modules
- getRequest() — Get the request (and keep your imports clean :-) )
- getValidDataObjects() — All dataobjects
- increaseTimeLimitTo() — Increase time limit
- isDev()
- isLive()
- message()
- regenerateClassManifest() — Rebuild the class manifest