Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added namespace to installer start event check #185

Closed

Conversation

tobias-kuendig
Copy link

It looks like defined only works with fully qualified namespaces. Use statements are not taken into account.

#184

@@ -151,7 +151,7 @@ public function uninstall(Composer $composer, IOInterface $io)
*/
public static function getSubscribedEvents()
{
if (defined('InstallerEvents::PRE_OPERATIONS_EXEC')) {
if (defined('\Composer\Installer\InstallerEvents::PRE_OPERATIONS_EXEC')) {
Copy link

@dereuromark dereuromark Jun 9, 2020

Choose a reason for hiding this comment

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

Technically, the leading \ inside such string FQCNs shouldn't be needed, though.

'Composer\Installer\InstallerEvents::PRE_OPERATIONS_EXEC'

@dereuromark dereuromark mentioned this pull request Jun 9, 2020
@mcaskill mcaskill mentioned this pull request Sep 28, 2020
4 tasks
@reedy
Copy link
Member

reedy commented Dec 11, 2020

Closing in favour of #189

@reedy reedy closed this Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants