Closed sterichards closed 8 years ago
It looks like you are running Symfony. Maybe try to install the bundle: https://github.com/Happyr/LinkedInBundle
The problem was that I hadn't added:
new \Happyr\LinkedInBundle\HappyrLinkedInBundle(),
into AppKernel.php
It may be worth adding that into the documentation. As obvious as it seems to instantiate the bundle, sometimes peoples minds are too far elsewhere to do anything besides follow the documentation word for word without any room for improvisation :)
This is a PHP library. It has nothing todo with Symfony, Laravel, Zend, Wordpress or any other framework or CMS. What you have installed is the LinkedinBundle. That is another repo. See here: https://github.com/Happyr/LinkedInBundle
The installation documentation of the bundle does include the line you request. =)
If i'm wrong here I shall look silly but I have to say that the bundle documentation doesn't include that line:
It only shows documentation that describes to include the HttpplugBundle within appkernel.php:
$bundles = array(
// ...
new Http\HttplugBundle\HttplugBundle(),
);
For this to successfully work, I need to include the following bundles within appkernel.php:
new \Happyr\LinkedInBundle\HappyrLinkedInBundle(),
new Http\HttplugBundle\HttplugBundle(),
If I am correct then I think it's important to update the documentation. I spent several hours scratching my head yesterday and it was only after a nights sleep and strong morning coffee that the solution became apparent :)
Oh, yes. You are correct. It was only the HTTPlugBundle.
See this PR: https://github.com/Happyr/LinkedInBundle/pull/6 That would solve your issue.
Actual Behavior
Error
Expected Behavior
Not to error :D
Steps to Reproduce
php app/console cache:clear
Possible Solutions
If you have already ideas how to solve the issue, add them here. (remove this section if not needed)