Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

AglInstaller.php

Namespace

Composer\Installers

File

vendor/composer/installers/src/Composer/Installers/AglInstaller.php

View source
<?php

namespace Composer\Installers;

class AglInstaller extends BaseInstaller {
    
    /** @var array<string, string> */
    protected $locations = array(
        'module' => 'More/{$name}/',
    );
    
    /**
     * Format package name to CamelCase
     */
    public function inflectPackageVars(array $vars) : array {
        $name = preg_replace_callback('/(?:^|_|-)(.?)/', function ($matches) {
            return strtoupper($matches[1]);
        }, $vars['name']);
        if (null === $name) {
            throw new \RuntimeException('Failed to run preg_replace_callback: ' . preg_last_error());
        }
        $vars['name'] = $name;
        return $vars;
    }

}

Classes

Title Deprecated Summary
AglInstaller

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal