WordPress at a glance
class is not described

Composer\Installers

Symfony1Installer{} WC 1.0

Plugin installer for symfony 1.x

No Hooks.

Return

Null. Nothing.

Usage

$Symfony1Installer = new Symfony1Installer();
// use class methods

Methods

  1. inflectPackageVars($vars)

Code of Symfony1Installer{} WC 5.0.0

<?php
class Symfony1Installer extends BaseInstaller
{
    protected $locations = array(
        'plugin'    => 'plugins/{$name}/',
    );

    /**
     * Format package name to CamelCase
     */
    public function inflectPackageVars($vars)
    {
        $vars['name'] = preg_replace_callback('/(-[a-z])/', function ($matches) {
            return strtoupper($matches[0][1]);
        }, $vars['name']);

        return $vars;
    }
}