PHP Class Bolt\Composer\JsonManager

Author: Gawain Lynch ([email protected])
Afficher le fichier Open project: bolt/bolt

Protected Properties

Свойство Type Description
$messages array

Méthodes publiques

Méthode 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

Méthode Description
setJsonDefaults ( array $json ) : array Enforce the default JSON settings.

Method Details

__construct() public méthode

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

init() public méthode

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

update() public méthode

Set up Composer JSON file.
public update ( ) : array | null
Résultat array | null

Property Details

$messages protected_oe property

protected array $messages
Résultat array