src/Wambo/ComposerInstaller/WamboInstaller.php
public function install(InstalledRepositoryInterface $repo, PackageInterface $package)
    {
        $this->bootstrap();

        // display info on "composer update" on command line
        echo 'add  ' . $package->getName() . ' to wambo modules';
        echo PHP_EOL;

        $wamboInstallerService = new WamboInstallerService($package);

        $className = $wamboInstallerService->getBootstrapClassName();
        $name = $package->getName();
        $version = $package->getVersion();

        $module = new Module($name, $version, $className);
        $this->moduleRepository->add($module);

        parent::install($repo, $package);
    }
public function install(InstalledRepositoryInterface $repo, PackageInterface $package)
    {
        $this->bootstrap();

        // display info on "composer update" on command line
        echo 'add  ' . $package->getName() . ' to wambo modules';
        echo PHP_EOL;

        $wamboInstallerService = new WamboInstallerService($package);

        $className = $wamboInstallerService->getBootstrapClassName();
        $name = $package->getName();
        $version = $package->getVersion();

        $module = new Module($name, $version, $className);
        $this->moduleRepository->add($module);

        parent::install($repo, $package);
    }
public function install ( InstalledRepositoryInterface $ repo , PackageInterface $ package ) { $ this -> bootstrap ( ) ; // display info on "composer update" on command line echo 'add  ' . $ package -> getName ( ) . ' to wambo modules' ; echo PHP_EOL ; $ wamboInstallerService = new WamboInstallerService ( $ package ) ; $ className = $ wamboInstallerService -> getBootstrapClassName ( ) ; $ name = $ package -> getName ( ) ; $ version = $ package -> getVersion ( ) ; $ module = new Module ( $ name , $ version , $ className ) ; $ this -> moduleRepository -> add ( $ module ) ; parent :: install ( $ repo , $ package ) ; }
Add a json node to the modules.json file.

@param InstalledRepositoryInterface $repo repository in which to check
@param PackageInterface $package package instance
Add a json node to the modules . json file .