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

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

Open
logan-christensen opened this issue Nov 19, 2020 · 3 comments

Comments

@logan-christensen
Copy link

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

@rsaylor-strivven
Copy link

This also fails on Lumen

Lumen (8.2.4) (Laravel Components ^8.0)
Tried with composer 2 and composer 1
PHP 7.3

Class 'Symfony\Component\EventDispatcher\Event' not found (500 Internal Server Error)

@johnboy4809
Copy link

@logan-christensen I know this was raised a few years ago but did you manage to resolve the issue as ive just tried it to connect to our rackspace and getting the same error

@rsaylor73
Copy link

We actually engaged their engineering team and it was pointless. We since moved to AWS. However, I was able to get curl commands to work creating DNS A records, etc.

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

No branches or pull requests

4 participants