Skip to content

[proposal] some kind of namespacing on globals #6872

@CarstenHoyer

Description

@CarstenHoyer

I just installed Drupal and Drush in Homestead using Composer. I know Homestead is made for Laravel, but its just so good :)

When doing anything with Drush I would get:

PHP Fatal error: Cannot redeclare base_path() (previously declared in /home/vagrant/.composer/vendor/illuminate/support/Illuminate/Support/helpers.php:365) in /home/vagrant/Workspace/drupal/8/community/core/includes/common.inc on line 830

Drupal also has a base_path global function. I ended up renaming the Laravel base_path to laravel_base_path. Maybe not the prettiest solution, but it looks like it is working for now.

Please consider some solution (probably not mine) to this problem.

EDIT: Same goes for dd()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions