src/Common/Console/Command/Make/Model.php
private function createAdminController(\stdClass $oModel): self
    {
        $this->oOutput->write('Creating admin controller... ');
        //  Execute the create command, non-interactively and silently
        $iExitCode = $this->callCommand(
            'make:controller:admin',
            [
                'modelName'    => $oModel->service_name,
                '--skip-check' => true,
            ],
            false,
            true
        );
        if ($iExitCode === static::EXIT_CODE_FAILURE) {
            $this->oOutput->writeln('<error>failed!</error>');
        } else {
            $this->oOutput->writeln('<info>done!</info>');
        }

        return $this;
    }
private function createAdminController(\stdClass $oModel): self
    {
        $this->oOutput->write('Creating admin controller... ');
        //  Execute the create command, non-interactively and silently
        $iExitCode = $this->callCommand(
            'make:controller:admin',
            [
                'modelName'    => $oModel->service_name,
                '--skip-check' => true,
            ],
            false,
            true
        );
        if ($iExitCode === static::EXIT_CODE_FAILURE) {
            $this->oOutput->writeln('<error>failed!</error>');
        } else {
            $this->oOutput->writeln('<info>done!</info>');
        }

        return $this;
    }
private function createAdminController ( \ stdClass $ oModel ) : self { $ this -> oOutput -> write ( 'Creating admin controller... ' ) ; //  Execute the create command, non-interactively and silently $ iExitCode = $ this -> callCommand ( 'make:controller:admin' , [ 'modelName' => $ oModel -> service_name , '--skip-check' => true , ] , false , true ) ; if ( $ iExitCode === static :: EXIT_CODE_FAILURE ) { $ this -> oOutput -> writeln ( '<error>failed!</error>' ) ; } else { $ this -> oOutput -> writeln ( '<info>done!</info>' ) ; } return $ this ; }
Creates an admin controller

@param \stdClass $oModel The model being created

@return $this
@throws \Exception
Creates an admin controller