Documentation

ComposerReader
in package

This class extracts manifest data from composer.json and allows the application to assemble an application booststrap object that it can then cache and use to get the application running.

Tags
author

César de la Cal Bretschneider cesar@magic3w.com

Table of Contents

providers()  : array<string|int, string>
read()  : AppManifest
Reads the contents of a composer.json file and returns the manifest data that it contains.

Methods

providers()

public static providers(string $installedJSON) : array<string|int, string>
Parameters
$installedJSON : string
Tags
todo

Allow passing a list of packages to be ignored by this function

Return values
array<string|int, string>

read()

Reads the contents of a composer.json file and returns the manifest data that it contains.

public static read(string $file) : AppManifest
Parameters
$file : string
Tags
throws
BadMethodCallException
throws
NotFoundException
Return values
AppManifest

Search results