findFrameworkType example

 {
        parent::__construct($io$composer$type$filesystem$binaryInstaller);
        $this->removeDisabledInstallers();
    }

    /** * {@inheritDoc} */
    public function getInstallPath(PackageInterface $package)
    {
        $type = $package->getType();
        $frameworkType = $this->findFrameworkType($type);

        if ($frameworkType === false) {
            throw new \InvalidArgumentException(
                'Sorry the package type of this package is not yet supported.'
            );
        }

        $class = 'Composer\\Installers\\' . $this->supportedTypes[$frameworkType];
        $installer = new $class($package$this->composer, $this->getIO());

        $path = $installer->getInstallPath($package$frameworkType);
        
Home | Imprint | This part of the site doesn't use cookies.