Skip to content

Update TAO Installer for proper work#437

Merged
niksamokhvalov merged 1 commit intocomposer:masterfrom
alroniks:patch-1
Apr 15, 2020
Merged

Update TAO Installer for proper work#437
niksamokhvalov merged 1 commit intocomposer:masterfrom
alroniks:patch-1

Conversation

@alroniks
Copy link
Copy Markdown
Contributor

@alroniks alroniks commented Sep 4, 2019

It adds additional manipulations with a name to fit naming template.

In current implementation extension name set in extra fields so this changes respect this value at first and after default rule will be applied.

It adds additional manipulations with name to fit naming template.
Copy link
Copy Markdown
Member

@niksamokhvalov niksamokhvalov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need to add information about tao-extension-name to the README.md.


$vars['name'] = str_replace('extension-', '', $vars['name']);
$vars['name'] = str_replace('-', ' ', $vars['name']);
$vars['name'] = lcfirst(str_replace(' ', '', ucwords($vars['name'])));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes violate backward compatibility. May be replace this on parent::inflectPackageVars?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But these manipulations are actual only for TAO extensions. I guess no need to change the default behavior in the BaseInstaller. And this installer has not been used anywhere else because we use own custom plugin, so BC definitely won't be broken.

@niksamokhvalov niksamokhvalov merged commit 8669edf into composer:master Apr 15, 2020
@alroniks alroniks deleted the patch-1 branch April 15, 2020 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants