Classes/Application/Command/PatternCommandController.php
/**
     * Shows a list of all available patterns as configured in Settings path "PackageFactory.Neos.CodeGenerator.patterns".
     *
     * @return void
     */
Shows a list of all available patterns as configured in Settings path "PackageFactory.Neos.CodeGenerator.patterns".
@return void
Shows a list of all available patterns as configured in Settings path " PackageFactory . Neos . CodeGenerator . patterns " . @return void
public function listCommand(): void
    {
        $this->outputLine();
        $this->outputLine('List of all available code patterns');
        $this->outputLine('===================================');
        $this->outputLine();
        $headers = ['Pattern Key', 'Short Description'];
        $rows = [];
        foreach ($this->patternRepository->findAll() as $pattern) {
            $rows[] = [$pattern->getKey(), $pattern->getShortDescription()];
        }
        $this->output->outputTable($rows, $headers);
        $this->outputLine();
        $this->outputLine('Usage:');
        $this->outputFormatted('<b>./flow pattern:generate <em>{Pattern Key}</em> <em>{Package Key}</em> ...</b>');
    }
public function listCommand ( ) : void { $ this -> outputLine ( ) ; $ this -> outputLine ( 'List of all available code patterns' ) ; $ this -> outputLine ( '===================================' ) ; $ this -> outputLine ( ) ; $ headers = [ 'Pattern Key' , 'Short Description' ] ; $ rows = [ ] ; foreach ( $ this -> patternRepository -> findAll ( ) as $ pattern ) { $ rows [ ] = [ $ pattern -> getKey ( ) , $ pattern -> getShortDescription ( ) ] ; } $ this -> output -> outputTable ( $ rows , $ headers ) ; $ this -> outputLine ( ) ; $ this -> outputLine ( 'Usage:' ) ; $ this -> outputFormatted ( '<b>./flow pattern:generate <em>{Pattern Key}</em> <em>{Package Key}</em> ...</b>' ) ; }
Shows a list of all available patterns as configured in Settings path "PackageFactory.Neos.CodeGenerator.patterns".
Shows a list of all available patterns as configured in Settings path " PackageFactory . Neos . CodeGenerator . patterns " .