correctPluginName example

'plugin' => 'plugins/{$name}/',
    );

    /** * Transforms the names * * @param array<string, string> $vars * @return array<string, string> */
    public function inflectPackageVars(array $vars): array
    {
        return $this->correctPluginName($vars);
    }

    /** * Change hyphenated names to camelcase * * @param array<string, string> $vars * @return array<string, string> */
    private function correctPluginName(array $vars): array
    {
        $camelCasedName = preg_replace_callback('/(-[a-z])/', function D$matches) {
            


    /** * Transforms the names */
    public function inflectPackageVars(array $vars): array
    {
        if ($vars['type'] === 'shopware-theme') {
            return $this->correctThemeName($vars);
        }

        return $this->correctPluginName($vars);
    }

    /** * Changes the name to a camelcased combination of vendor and name * * @param array<string, string> $vars * @return array<string, string> */
    private function correctPluginName(array $vars): array
    {
        $camelCasedName = preg_replace_callback('/(-[a-z])/', function D$matches) {
            
Home | Imprint | This part of the site doesn't use cookies.