ICanBoogie
  • Documentation
  • API Reference
  • ICanBoogie 4.0.x
Namespaces
  • ICanBoogie
    • Application
    • Autoconfig
    • Binding
    • Routing
    • Session
Classes
  • AutoconfigGenerator
  • FakeAutoloadGenerator
  • Hooks
  • Schema
Interfaces
  • Autoconfig

Class AutoconfigGenerator

ICanBoogie\Autoconfig\AutoconfigGenerator implements ICanBoogie\Autoconfig\Autoconfig
Namespace: ICanBoogie\Autoconfig
Codecoverageignore
Located at Autoconfig/AutoconfigGenerator.php

Methods summary

public __construct( array $packages, string $destination )

Parameters

$packages
$destination
public __invoke( void )

Search for autoconfig fragments defined by the packages and create the autoconfig file.

Search for autoconfig fragments defined by the packages and create the autoconfig file.

protected resolve_fragments( array $packages ) : array

Resolve the autoconfig fragments defined by the packages.

Resolve the autoconfig fragments defined by the packages.

Parameters

$packages

Returns

array
An array with the resolved fragments and their weights.
protected resolve_fragment( string $pathname ) : mixed|null

Resolve the autoconfig fragment of a package.

Resolve the autoconfig fragment of a package.

Parameters

$pathname
The pathname to the package.

Returns

mixed|null
The autoconfig fragment, or null if the package doesn't define one.
public synthesize( Composer\Util\Filesystem $filesystem = null ) : array

Synthesize the autoconfig fragments into a single array.

Synthesize the autoconfig fragments into a single array.

Parameters

$filesystem

Returns

array
public render( string $synthesized_config = null ) : string

Render the synthesized autoconfig into a string.

Render the synthesized autoconfig into a string.

Parameters

$synthesized_config

Returns

string
protected render_config_constructor( array $synthesized ) : string

Render the config-constructor part of the autoconfig.

Render the config-constructor part of the autoconfig.

Parameters

$synthesized

Returns

string
protected render_config_path( array $synthesized ) : string

Render the config-path part of the autoconfig.

Render the config-path part of the autoconfig.

Parameters

$synthesized

Returns

string
protected render_filters( array $synthesized ) : string

Render the filters part of the autoconfig.

Render the filters part of the autoconfig.

Parameters

$synthesized

Returns

string
public write( void )

Write the autoconfig file.

Write the autoconfig file.

Constants summary

Constants inherited from ICanBoogie\Autoconfig\Autoconfig

APP_PATHS, APP_ROOT, AUTOCONFIG_FILTERS, CONFIG_CONSTRUCTOR, CONFIG_PATH, CONFIG_WEIGHT, CONFIG_WEIGHT_APP, CONFIG_WEIGHT_FRAMEWORK, CONFIG_WEIGHT_MODULE, DEFAULT_APP_ROOT, LOCALE_PATH, MODULE_PATH, ROOT

Properties summary

protected $packages : Composer\Package\Package

		
protected $destination : string

		
protected $composer_schema : ICanBoogie\Autoconfig\Schema

		
protected $icanboogie_schema : ICanBoogie\Autoconfig\Schema

		
protected $filesystem : Composer\Util\Filesystem

		
protected $fragments : array
[]
protected $weights : array
[]
ICanBoogie 4.0.x – Check on GitHub – API documentation generated by ApiGen