concretecms / console

A command line utility for working with Concrete CMS.
MIT License
11 stars 3 forks source link

concrete command: symfony error #5

Closed crydotsnake closed 3 years ago

crydotsnake commented 3 years ago

Hello,

i installed the concrete5-console package via composer, and export PATH=~/.composer/vendor/bin:$PATH is in my .zshrc file.

But concrete info returns:

Fatal error: Cannot redeclare dd() (previously declared in /Users/expl0it/.composer/vendor/symfony/var-dumper/Resources/functions/dump.php:35) in /Users/expl0it/.composer/vendor/concrete5/console/helpers.php on line 7

How can i fix that?.

KorvinSzanto commented 3 years ago

We need to namespace our helper functions to prevent collisions like this. It's a small library, there's no reason we can't just use them every time we need them.

crydotsnake commented 3 years ago

Good too know ^^

KorvinSzanto commented 3 years ago

8 will avoid this issue

KorvinSzanto commented 3 years ago

Use the phar release of >=0.1.0 to avoid this issue completely. Thanks @mlocati!