generate:routesubscriber

Generează un RouteSubscriber

Usage:

drupal generate:routesubscriber [options]
gr

Available options

Option Details
--module Numele Modulului.
--name Numele serviciului
--class Numele clasei

Examples

  • Generate a route subscriber specifying the module name, the route name and its class
    drupal generate:routesubscriber  \
    --module="modulename"  \
    --name="modulename.route_subscriber"  \
    --class="RouteSubscriber"