WordPress at a glance
class is not described

Composer\Installers

AglInstaller{} WC 1.0

No Hooks.

Return

null. Nothing.

Usage

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

Methods

  1. inflectPackageVars($vars)

Code of AglInstaller{} WC 5.2.2

<?php
class AglInstaller extends BaseInstaller
{
    protected $locations = array(
        'module' => 'More/{$name}/',
    );

    /**
     * Format package name to CamelCase
     */
    public function inflectPackageVars($vars)
    {
        $vars['name'] = preg_replace_callback('/(?:^|_|-)(.?)/', function ($matches) {
            return strtoupper($matches[1]);
        }, $vars['name']);

        return $vars;
    }
}