Deprecated: Grav\Common\Grav::setup(): Implicitly marking parameter $environment as nullable is deprecated, the explicit nullable type must be used instead in /home/julienmaik/docs/system/src/Grav/Common/Grav.php on line 189

Deprecated: Grav\Common\Grav::header(): Implicitly marking parameter $response as nullable is deprecated, the explicit nullable type must be used instead in /home/julienmaik/docs/system/src/Grav/Common/Grav.php on line 484

Deprecated: Grav\Common\Grav::fireEvent(): Implicitly marking parameter $event as nullable is deprecated, the explicit nullable type must be used instead in /home/julienmaik/docs/system/src/Grav/Common/Grav.php on line 547

Deprecated: Return type of Pimple\Container::offsetExists($id) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/julienmaik/docs/vendor/pimple/pimple/src/Pimple/Container.php on line 133

Deprecated: Return type of Pimple\Container::offsetGet($id) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/julienmaik/docs/vendor/pimple/pimple/src/Pimple/Container.php on line 98

Deprecated: Return type of Pimple\Container::offsetSet($id, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/julienmaik/docs/vendor/pimple/pimple/src/Pimple/Container.php on line 79

Deprecated: Return type of Pimple\Container::offsetUnset($id) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/julienmaik/docs/vendor/pimple/pimple/src/Pimple/Container.php on line 143

Deprecated: Grav\Common\Debugger::profile(): Implicitly marking parameter $message as nullable is deprecated, the explicit nullable type must be used instead in /home/julienmaik/docs/system/src/Grav/Common/Debugger.php on line 543

Deprecated: Grav\Common\Debugger::stopProfiling(): Implicitly marking parameter $message as nullable is deprecated, the explicit nullable type must be used instead in /home/julienmaik/docs/system/src/Grav/Common/Debugger.php on line 584

Deprecated: Grav\Common\Debugger::addEvent(): Implicitly marking parameter $time as nullable is deprecated, the explicit nullable type must be used instead in /home/julienmaik/docs/system/src/Grav/Common/Debugger.php on line 775
Development Tricks | Julien Maxant - Docs

Development Tricks

Réinitialiser la version d'un module pour exécuter de nouveau son hook_update_n

  • Exécuter la commande sql suivante (drush sqlc) :
    UPDATE key_value SET value="i:{n-1};" WHERE collection="system.schema" AND name="mymodule";

Déclarer une page de maintenance

  1. Déclarer dans le settings.php l'index $settings['maintenance_theme'] = 'nom_du_theme_actif';
  2. Dans ce thème, déclarer le template : maintenance-page.html.twig