src/Textpattern/Composer/Installer/Installer/AdminTheme.php
public function getInstallPath(PackageInterface $package)
    {
        $textpattern = new Textpattern();
        $path = $textpattern->getRelativePath();
        $themes = $path . '/admin-themes';

        // Textpattern <= 4.5.x uses 'theme' directory.
        if (!file_exists($themes)) {
            $themes = $path . '/theme';
        }

        return $themes . '/' . basename($package->getPrettyName());
    }
public function getInstallPath(PackageInterface $package)
    {
        $textpattern = new Textpattern();
        $path = $textpattern->getRelativePath();
        $themes = $path . '/admin-themes';

        // Textpattern <= 4.5.x uses 'theme' directory.
        if (!file_exists($themes)) {
            $themes = $path . '/theme';
        }

        return $themes . '/' . basename($package->getPrettyName());
    }
public function getInstallPath ( PackageInterface $ package ) { $ textpattern = new Textpattern ( ) ; $ path = $ textpattern -> getRelativePath ( ) ; $ themes = $ path . '/admin-themes' ; // Textpattern <= 4.5.x uses 'theme' directory. if ( ! file_exists ( $ themes ) ) { $ themes = $ path . '/theme' ; } return $ themes . '/' . basename ( $ package -> getPrettyName ( ) ) ; }
Points the package to the theme directory.

@param  PackageInterface $package
@return string
Points the package to the theme directory .