Overview

Namespaces

  • Minion
    • Service
    • Twig

Classes

  • Application
  • Console
  • Controller
  • Utils

Interfaces

  • ControllerInterface
  • Overview
  • Namespace
  • Class

Class Console

Class Console.

Silex\Application
Extended by Minion\Application
Extended by Minion\Console
Namespace: Minion
Package: Minion
Author: Damian SzczerbiƄski dszczer@gmail.com
Located at Console.php
Methods summary
public Minion\Console
# __construct( string $appNamespace = '', array $values = [], array $fixPaths = [] )

Console constructor.

Console constructor.

Parameters

$appNamespace
Application namespace (autodetect, if empty)
$values
Default options
$fixPaths
Path fixes

Returns

Minion\Console

Throws

InvalidArgumentException
Missing propel configuration file
InvalidArgumentException
Can not resolve project namespace
InvalidConfigurationException
Twig engine is not enabled, but extension configured in config.yml file
RuntimeException
File parameters.yml does not exist
Exception
Throws raw exceptions in test environment

Overrides

Minion\Application::__construct()
public string
# getCommandPath( )

Get project command directory path.

Get project command directory path.

Returns

string
public mixed
# run( Symfony\Component\HttpFoundation\Request $request = null )

Run console.

Run console.

Parameters

$request
Request object (not used in commands). Only to match inheritance requirements.

Returns

mixed
public
# loadCommands( string $path, string|null $prefix = null )

Load all Command files from $path directory.

Load all Command files from $path directory.

Traverse all files inside specified directory, but loads only those files with suffix 'Command.php'.

Parameters

$path
Directory with Command files
$prefix
Commands namespace
Methods inherited from Minion\Application
fastAbort(), getAppNamespace(), getConfigPath(), getPackageDir(), getPropelConfigPath(), getRootDir(), minionError(), resolvePaths()
Constants inherited from Minion\Application
VERSION
Properties summary
public string $commandPath

Command path

Command path

#
Properties inherited from Minion\Application
$appNamespace, $configPath, $packageDir, $propelConfigPath, $rootDir
API documentation generated by ApiGen