Skip to content

Class 'Symfony\Component\EventDispatcher\Event' not found When making call to dnsService() #751

@logan-christensen

Description

@logan-christensen

In a fresh install of Laravel, running the following code:

    $client = new Rackspace(Rackspace::US_IDENTITY_ENDPOINT, [
        'username' => '{username}',
        'apiKey' => '{api_key}'
    ]);
    $dnsService = $client->dnsService();

Causes the error:
Class 'Symfony\Component\EventDispatcher\Event' not found

I'm using Laravel Version 8.12
PHP 7.4
I have symfony/event-dispatcher: ^5.1

I'm sure if it's related but when installing php-opencloud via composer I got the warning:

Package guzzle/guzzle is abandoned, you should avoid using it. Use guzzlehttp/guzzle instead.

To Reproduce

  1. Install a new Laravel Project
  2. Run composer require rackspace/php-opencloud:dev-master
  3. Copy the code at the top of this issue into the route closure in /routes/web.php
  4. Try to visit that route in the browser

I've shared the exception on flare: https://flareapp.io/share/pPvl0AY5#F55

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions