dev-master
9999999-devLoads project specific contexts into Boris REPL
MIT
The Requires
The Development Requires
Loads project specific contexts into Boris REPL
Loads project specific contexts into d11wtq/boris REPL., (*1)
Currently supports Composer, Drupal, eZ Publish and Symfony., (*2)
The easiest (and recommended) way of using boris-loader is by hooking into Boris via your .borisrc
file, either in your $HOME
or your current working directory. Simply clone this repository somewhere and add the following lines to your .borisrc
., (*4)
<?php require 'path/to/cloned/boris-loader.php'; \Boris\Loader\Loader::load($boris);
By default, boris-loader will try to load any Composer configuration it can find. If you are working with projects like Symfony or Drupal, you can have boris-loader look for and run their respective bootstrap., (*5)
<?php require __DIR__.'/../../../../boris-loader.php'; \Boris\Loader\Loader::load($boris, array( new \Boris\Loader\Provider\Symfony2(), new \Boris\Loader\Provider\Composer(), ));
You can optionally pass the Symfony environment name and debug mode to the Symfony2 provider as arguments. The arguments default to 'dev' environment and true for debug mode., (*6)
<?php require __DIR__.'/../../../../boris-loader.php'; \Boris\Loader\Loader::load($boris, array( new \Boris\Loader\Provider\Symfony2('prod', false), ));
See this document for an example of using ENV vars to make this dynamic in your ~/.borisrc, (*7)
Loads project specific contexts into Boris REPL
MIT