PHP Class ZF\Apigility\Admin\Controller\PackageController

Inheritance: extends Zend\Mvc\Controller\AbstractActionController
Show file Open project: zfcampus/zf-apigility-admin

Public Methods

Method Description
__construct ( null | string $zfdeployPath = null )
__destruct ( ) Unlink any package sent over the wire previously.
indexAction ( ) : array | Zend\Http\Response | ZF\ApiProblem\ApiProblemResponse Handle incoming requests
setRequest ( Zend\Http\Request $request ) Set the request object manually

Private Methods

Method Description
create ( string $format, array $params ) : array | ZF\ApiProblem\ApiProblemResponse Create a package, given a format and options.
createComposerOption ( null | boolean $composer ) : string Create the composer option, if any.
createConfigOption ( null | string $config ) : string Create the config option, if any.
createModulesOption ( null | array $apis ) : string Create and return the --modules option, if any.
createZpkAssetsOption ( null | string $assets ) : string Create and return the zpkdata option.
createZpkOptions ( array $params ) : string Create and return any ZPK-specific options.
createZpkVersionOption ( null | string $version ) : string Create and return the version option.
createZpkXmlOption ( null | string $xml ) : string Create and return the deploymentxml option.
fetch ( string $fileId, string $format, Zend\Http\Response $response ) : Zend\Http\Response Fetch a generated package.
getPackageFile ( string $fileId, string $format ) : string Create the package file name.

Method Details

__construct() public method

public __construct ( null | string $zfdeployPath = null )
$zfdeployPath null | string Path to use to zfdeploy.php.

__destruct() public method

Unlink any package sent over the wire previously.
public __destruct ( )

indexAction() public method

Handle incoming requests
public indexAction ( ) : array | Zend\Http\Response | ZF\ApiProblem\ApiProblemResponse
return array | Zend\Http\Response | ZF\ApiProblem\ApiProblemResponse

setRequest() public method

Provided for testing.
public setRequest ( Zend\Http\Request $request )
$request Zend\Http\Request