installer
class installer
Class to install packages through composer while freezing core dependencies.
Constants
PHPBB_TYPES |
|
Properties
protected array | $repositories | ||
protected bool | $packagist | ||
protected string | $composer_filename | ||
protected string | $packages_vendor_dir | ||
protected string | $minimum_stability | ||
protected string | $root_path |
Methods
No description
Update the current installed set of packages
Update the current installed set of packages
Returns the list of currently installed packages
Returns the list of currently installed packages
Gets the list of the available packages of the configured type in the configured repositories
Gets the list of the available packages of the configured type in the configured repositories
Checks the requirements of the manager and returns true if it can be used.
Generates and write the json file used to install the set of packages
Restore the json file overridden by generate_ext_json_file()
Get the core installed packages
Get the PHP version required by the core
Generate the repositories entry of the packages json file
Get the name of the json file used for the packages.
Get extra dependencies required to install the packages
Sets the customs repositories
Allow or disallow packagist
Sets the name of the managed packages' json file
Sets the location of the managed packages' vendors
Sets the phpBB root path
Change the current directory to phpBB root
Restore the current working directory if move_to_root() have been called
Wraps a callable in order to adjust the context needed by composer
Details
at line 99
__construct(string $root_path, filesystem $filesystem, request $request, config $config = null)
No description
at line 133
install(array $packages, array $whitelist, IOInterface $io = null)
Update the current installed set of packages
at line 152
protected
do_install(array $packages, array $whitelist, IOInterface $io = null)
Update the current installed set of packages
/!\ Doesn't change the current working directory
at line 213
array
get_installed_packages(string|array $types)
Returns the list of currently installed packages
at line 229
protected array
do_get_installed_packages(string|array $types)
Returns the list of currently installed packages
/!\ Doesn't change the current working directory
at line 273
array
get_available_packages(string $type)
Gets the list of the available packages of the configured type in the configured repositories
/!\ Doesn't change the current working directory
at line 287
protected array
do_get_available_packages(string $type)
Gets the list of the available packages of the configured type in the configured repositories
at line 415
bool
check_requirements()
Checks the requirements of the manager and returns true if it can be used.
at line 477
protected
generate_ext_json_file(array $packages)
Generates and write the json file used to install the set of packages
at line 525
protected
restore_ext_json_file()
Restore the json file overridden by generate_ext_json_file()
at line 548
protected array
get_core_packages(Composer $composer)
Get the core installed packages
at line 569
protected string
get_core_php_requirement(Composer $composer)
Get the PHP version required by the core
at line 579
protected array
get_composer_repositories()
Generate the repositories entry of the packages json file
at line 608
protected string
get_composer_ext_json_filename()
Get the name of the json file used for the packages.
at line 618
protected array
get_extra_dependencies()
Get extra dependencies required to install the packages
at line 628
set_repositories(array $repositories)
Sets the customs repositories
at line 638
set_packagist(bool $packagist)
Allow or disallow packagist
at line 648
set_composer_filename(string $composer_filename)
Sets the name of the managed packages' json file
at line 658
set_packages_vendor_dir(string $packages_vendor_dir)
Sets the location of the managed packages' vendors
at line 668
set_root_path(string $root_path)
Sets the phpBB root path
at line 676
protected
move_to_root()
Change the current directory to phpBB root
at line 688
protected
restore_cwd()
Restore the current working directory if move_to_root() have been called
at line 704
protected mixed
wrap(callable $callable)
Wraps a callable in order to adjust the context needed by composer