Overview

Namespaces

  • Minion
    • Service
    • Twig

Classes

  • Application
  • Console
  • Controller
  • Utils

Interfaces

  • ControllerInterface
  • Overview
  • Namespace
  • Class

Class Application

Class Application.

Wrapper for Silex framework to improve it's flexibility and usability.

Silex\Application
Extended by Minion\Application

Direct known subclasses

Minion\Console
Namespace: Minion
Package: Minion
Author: Damian SzczerbiƄski dszczer@gmail.com
Located at Application.php
Methods summary
public string
# getAppNamespace( )

Get application namespace.

Get application namespace.

Returns

string
public string
# getRootDir( )

Get project root directory.

Get project root directory.

Returns

string
public string
# getPackageDir( )

get Minion package directory.

get Minion package directory.

Returns

string
public string
# getPropelConfigPath( )

Get default Propel configuration path.

Get default Propel configuration path.

Returns

string
public string
# getConfigPath( )

Get configuration path relative to the root directory.

Get configuration path relative to the root directory.

Returns

string
public Minion\Application
# __construct( string $appNamespace = '', array $values = [], array $fixPaths = [] )

Application constructor.

Application constructor.

Parameters

$appNamespace
Application and/or vendor namespace, e.g. 'namespace', 'vendor\namespace'
$values
Custom configuration
$fixPaths
Fix paths used to bootstrap files and directories

Returns

Minion\Application

Throws

InvalidArgumentException
Missing propel configuration file
InvalidArgumentException
Can not resolve project namespace
Symfony\Component\Config\Definition\Exception\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
public Symfony\Component\HttpFoundation\Response
# minionError( Exception $ex, integer $code )

Parameters

$ex
Any exception
$code
HTTP status code

Returns

Symfony\Component\HttpFoundation\Response
Response to the client with nice error page
public
# fastAbort( Exception $exception, integer $code = 500 )

Parameters

$exception
Exception instance
$code
HTTP status code
protected
# resolvePaths( array $fixPaths )

Resolve paths to navigate through project.

Resolve paths to navigate through project.

Parameters

$fixPaths
User-defined path fixes

Throws

InvalidArgumentException
Some paths are invalid
Constants summary
string VERSION
# '1.0.0'
Properties summary
protected string $rootDir

Project root directory

Project root directory

#
protected string $packageDir

Package directory

Package directory

#
protected string $configPath

Project configuration path

Project configuration path

#
protected string $propelConfigPath

Propel configuration file

Propel configuration file

#
protected string $appNamespace

Application namespace

Application namespace

#
API documentation generated by ApiGen