Skip to main content

Module runtime_stub

Module runtime_stub 

Source
Expand description

Emulation of the symfony/runtime plugin (plan r2): the plugin only generates vendor/autoload_runtime.php at autoload dump time. The template below is the observed output of the real plugin (symfony-demo fixture, default options); the drift test (ignored by default, slow) regenerates the reference through a real composer install with plugins.

If the root composer.json customises extra.runtime, we are outside the default emulation, so the scope detector routes to the fallback.

Constants§

AUTOLOAD_RUNTIME_TEMPLATE

Functions§

php_var_export
var_export($value, true) for a JSON-decoded value (json_decode(…, true): objects are arrays), with PHP’s two-space nesting.
write_stub
ComposerPlugin::updateAutoloadFile: the template shipped by the installed symfony/runtime (Internal/autoload_runtime.template, or extra.runtime.autoload_template), with %project_dir%, %runtime_class% and %runtime_options% substituted from extra.runtime. extra.runtime: false writes nothing. The embedded template above is the fallback when the package ships none.