Tiger_Generator_Module

@api

Tiger_Generator_Module — scaffolds a new application module.

Powers bin/tiger make:module <name>. Writes a self-contained, immediately-live module under application/modules//: it's auto-discovered by module scanning (via its Bootstrap), routable (// through the default route), ACL-governed (its configs/acl.ini is loaded by Tiger_Acl_Acl), and ships both a controller and an /api service so the developer sees both extension patterns.

Templates are NOWDOC strings (no PHP-var interpolation) with {{name}}/{{Name}} placeholders, so generated code like $params/$this is emitted verbatim.

Methods

generate()

generate($name, $modulesPath)

Generate the module. Returns the list of created file paths.

  • $name string — lowercase module name (a-z0-9, starts a-z)
  • $modulesPath string — application/modules

Returns string[]

Throws RuntimeException — on a bad name or an existing module