generate:controller

The generate:controller command एक कंट्रोलर को उत्पन्न और पंजीकृत करें

प्रयोग:

$ drupal generate:controller [options] 
$ gcn

उपलब्ध विकल्प

विकल्प विवरण
--module मोड्यूल का नाम।
--class कंट्रोलर क्लास का नाम
--title Title of the controller
--method The action method name
--route मार्ग
--services सर्विसेज़ को container से लोड करें।
--test एक परिक्षण क्लास उत्पन्न करें