src/Robo/Blt.php
public function configureContainer($container) {
    $container->share('logStyler', BltLogStyle::class);

    // We create our own builder so that non-command classes are able to
    // implement task methods, like taskExec(). Yes, there are now two builders
    // in the container. "collectionBuilder" used for the actual command that
    // was executed, and "builder" to be used with non-command classes.
    $blt_tasks = new BltTasks();
    $builder = new CollectionBuilder($blt_tasks);
    $blt_tasks->setBuilder($builder);
    $container->add('builder', $builder);
    $container->add('executor', Executor::class)
      ->withArgument('builder');

    $container->share('inspector', Inspector::class)
      ->withArgument('executor');

    $container->inflector(InspectorAwareInterface::class)
      ->invokeMethod('setInspector', ['inspector']);

    $container->add(SetupWizard::class)
      ->withArgument('executor');
    $container->add(TestsWizard::class)
      ->withArgument('executor');

    $container->share('filesetManager', FilesetManager::class);

    $updater = new Updater('Acquia\Blt\Update\Updates', $this->getConfig()->get('repo.root'));
    $container->share('updater', $updater);

    /** @var \Consolidation\AnnotatedCommand\AnnotatedCommandFactory $factory */
    $factory = $container->get('commandFactory');
    // Tell the command loader to only allow command functions that have a
    // name/alias.
    $factory->setIncludeAllPublicMethods(FALSE);
    $factory->addCommandInfoAlterer(new BltCommandInfoAlterer());
  }
public function configureContainer($container) {
    $container->share('logStyler', BltLogStyle::class);

    // We create our own builder so that non-command classes are able to
    // implement task methods, like taskExec(). Yes, there are now two builders
    // in the container. "collectionBuilder" used for the actual command that
    // was executed, and "builder" to be used with non-command classes.
    $blt_tasks = new BltTasks();
    $builder = new CollectionBuilder($blt_tasks);
    $blt_tasks->setBuilder($builder);
    $container->add('builder', $builder);
    $container->add('executor', Executor::class)
      ->withArgument('builder');

    $container->share('inspector', Inspector::class)
      ->withArgument('executor');

    $container->inflector(InspectorAwareInterface::class)
      ->invokeMethod('setInspector', ['inspector']);

    $container->add(SetupWizard::class)
      ->withArgument('executor');
    $container->add(TestsWizard::class)
      ->withArgument('executor');

    $container->share('filesetManager', FilesetManager::class);

    $updater = new Updater('Acquia\Blt\Update\Updates', $this->getConfig()->get('repo.root'));
    $container->share('updater', $updater);

    /** @var \Consolidation\AnnotatedCommand\AnnotatedCommandFactory $factory */
    $factory = $container->get('commandFactory');
    // Tell the command loader to only allow command functions that have a
    // name/alias.
    $factory->setIncludeAllPublicMethods(FALSE);
    $factory->addCommandInfoAlterer(new BltCommandInfoAlterer());
  }
public function configureContainer ( $ container ) { $ container -> share ( 'logStyler' , BltLogStyle :: class ) ; // We create our own builder so that non-command classes are able to // implement task methods, like taskExec(). Yes, there are now two builders // in the container. "collectionBuilder" used for the actual command that // was executed, and "builder" to be used with non-command classes. $ blt_tasks = new BltTasks ( ) ; $ builder = new CollectionBuilder ( $ blt_tasks ) ; $ blt_tasks -> setBuilder ( $ builder ) ; $ container -> add ( 'builder' , $ builder ) ; $ container -> add ( 'executor' , Executor :: class ) -> withArgument ( 'builder' ) ; $ container -> share ( 'inspector' , Inspector :: class ) -> withArgument ( 'executor' ) ; $ container -> inflector ( InspectorAwareInterface :: class ) -> invokeMethod ( 'setInspector' , [ 'inspector' ] ) ; $ container -> add ( SetupWizard :: class ) -> withArgument ( 'executor' ) ; $ container -> add ( TestsWizard :: class ) -> withArgument ( 'executor' ) ; $ container -> share ( 'filesetManager' , FilesetManager :: class ) ; $ updater = new Updater ( 'Acquia\Blt\Update\Updates' , $ this -> getConfig ( ) -> get ( 'repo.root' ) ) ; $ container -> share ( 'updater' , $ updater ) ; /** @var \Consolidation\AnnotatedCommand\AnnotatedCommandFactory $factory */ $ factory = $ container -> get ( 'commandFactory' ) ; // Tell the command loader to only allow command functions that have a // name/alias. $ factory -> setIncludeAllPublicMethods ( FALSE ) ; $ factory -> addCommandInfoAlterer ( new BltCommandInfoAlterer ( ) ) ; }
Register the necessary classes for BLT.
Register the necessary classes for BLT .