Adds asset installers.

@param Config      $config
@param Composer    $composer
@param IOInterface $io
187899
public static function addInstallers(Config $config, Composer $composer, IOInterface $io)
    {
        $im = $composer->getInstallationManager();

        $im->addInstaller(new BowerInstaller($config, $io, $composer, Assets::createType('bower')));
        $im->addInstaller(new AssetInstaller($config, $io, $composer, Assets::createType('npm')));
    }
201197
private static function createApplication(IOInterface $io, string $config) : Application
    {
        $app = new Application();
        $app->setAutoExit(false);
        $app->setConfigFile($config);
        $app->setProxyIO($io);

        $install = new Install();
        $install->setIO($app->getIO());
        $app->add($install);

        $configuration = new Configuration();
        $configuration->setIO($app->getIO());
        $app->add($configuration);
        return $app;
    }
892154
public function activate(Composer $composer, IOInterface $io)
    {
        //set config from root package
        $composer->getConfig()->merge(
            [
                'config' => [
                    'root_extra_config' => $composer->getPackage()->getExtra(),
                ],
            ]
        );

        $this->initConfig($composer);

        $this->initMultiVcsRepositories($composer, $io);
    }
173007
public function activate(Composer $composer, IOInterface $inputOutput)
    {
        $this->composer = $composer;
        $this->inputOutput = $inputOutput;

        $packageDirectory = $this->composer->getConfig()->get('vendor-dir')
            . DIRECTORY_SEPARATOR . 'zooroyal' . DIRECTORY_SEPARATOR . 'coding-standard';
        $this->process = new Process('npm install --prefix ' . $packageDirectory);
        $this->process->setTimeout(300);
    }
327713
public function activate(Composer $composer, IOInterface $io)
    {
        $this->io = $io;
        $this->composer = $composer;
        $rootDir = realpath($this->composer->getConfig()->get('vendor-dir') . '/../');
        $settings = $this->composer->getPackage()->getExtra()['application'] ?? [];
        $this->appInfo = new AppInfo($rootDir, $settings);
        $this->isProject = $composer->getPackage()->getType() === 'project';

        if ($this->isProject) {
            $this->packageInstaller = new PackageInstaller($this->appInfo, $io, $composer);
            $this->composer
                ->getInstallationManager()
                ->addInstaller($this->packageInstaller);
        }
    }
814025
public function activate(Composer $composer, IOInterface $io)
    {
        $this->package = $composer->getPackage();
        $this->io = $io;

        // TODO: get the project root - must be a better way to do this
        $this->projectRoot = realpath(dirname($composer->getConfig()->get('vendor-dir')));
    }
280577
public function activate(Composer $composer, IOInterface $io)
    {
        $this->composer = $composer;
        $this->io = $io;
        if(isset($this->composer->getPackage()->getExtra()['auto-require']['vendor-name'])) {
            $this->vendorName = $this->composer->getPackage()->getExtra()['auto-require']['vendor-name'];
        } else {
            $this->vendorName = 'yourpackage';
        }
        if(isset($this->composer->getPackage()->getExtra()['auto-require']['path-scheme'])) {
            $this->pathScheme = $this->composer->getPackage()->getExtra()['auto-require']['path-scheme'];
        } else {
            $this->pathScheme = '{vendorName}/{vendorName}.{name}';
        }
    }
858576
public function activate(Composer $composer, IOInterface $io)
    {
        $this->composer = $composer;
        $this->io = $io;

        $this->enabled = $this->composer->getPackage()->getExtra()['rikudou']['installer']['enabled'] ?? true;
        $this->excluded = $this->composer->getPackage()->getExtra()['rikudou']['installer']['exclude'] ?? [];

        $this->preload();
    }
1179742
protected function installLibrary(IOInterface $IO, Library $library)
    {
        if (!$library || !$library->requiresExpose()) {
            return;
        }

        // Create exposure task
        $task = new VendorExposeTask(
            $this->getProjectPath(),
            $this->filesystem,
            $library->getBasePublicPath()
        );
        $task->process($IO, [$library]);
    }
957343
public function configure(array $config, ConfigurationInterface $configuration, ContainerBuilder $container)
    {
        $processor = new Processor();
        $config    = $processor->processConfiguration($configuration, $config);

        $loader = new XmlFileLoader($container, new FileLocator($this->getConfigurationDirectory()));

		foreach(WallPosterBundle::getAvailableProviders() as $service)
		{
			if(isset($config[$service]))
			{
				$this->mapParameters($service, $config[$service], $container);
				$this->loadConfigurationFile($service,$loader);
			}
		}

        return array($config, $loader);
    }
1039312
public static function addRegistryRepositories(AssetRepositoryManager $arm, VcsPackageFilter $filter, Config $config)
    {
        foreach (Assets::getRegistryFactories() as $registryType => $factoryClass) {
            $ref = new \ReflectionClass($factoryClass);

            if ($ref->implementsInterface('Fxp\Composer\AssetPlugin\Repository\RegistryFactoryInterface')) {
                \call_user_func(array($factoryClass, 'create'), $arm, $filter, $config);
            }
        }
    }
991840
public function activate(Composer $composer, IOInterface $io)
    {
        $this->config = Config::load($io, $composer->getConfig());
        $this->composer = $composer;
        $this->io = $io;
    }
432470
public function addConfig(ConfigInterface $config) {
        // Add to config list
        $this->configs->attach($config);

        // If collection is in merge mode, add config data to common store
        $this->store->merge($config->dump());
        return $this;
    }
433296
public function activate(Composer $composer, IOInterface $io)
    {
        /** composer and io properties are assgned for convenience */
        $this->composer = $composer;
        $this->io = $io;
    }
442542
public function activate(Composer $composer, IOInterface $io)
    {
        $this->assetsInstaller = new AssetsInstaller($composer, $io);
    }
185215
public function setupPlugin(array $config = []): void
	{
		if (!$this->defaults) return;
		$this->setupConfig($this->defaults, $config);
	}
1018866
private static function install(Application $app, string $config, string $repo) : void
    {
        $options = [
            'command'         => 'install',
            '--configuration' => $config,
            '--git-directory' => $repo,
            '-f'              => '-f'
        ];
        $app->run(new ArrayInput($options));
    }