PHP Class Bolt\Composer\JsonManager

Author: Gawain Lynch ([email protected])
Show file Open project: bolt/bolt

Protected Properties

Property Type Description
$messages array

Public Methods

Method Description
__construct ( Silex\Application $app ) Constructor.
init ( string $file, array $data = null ) Initialise a JSON file at given location with optional data input.
update ( ) : array | null Set up Composer JSON file.

Private Methods

Method Description
setJsonDefaults ( array $json ) : array Enforce the default JSON settings.

Method Details

__construct() public method

Constructor.
public __construct ( Silex\Application $app )
$app Silex\Application \Silex\Application

init() public method

Initialise a JSON file at given location with optional data input.
public init ( string $file, array $data = null )
$file string
$data array

update() public method

Set up Composer JSON file.
public update ( ) : array | null
return array | null

Property Details

$messages protected property

protected array $messages
return array