Happyr / LinkedIn-API-client

A library to connect with LinkedIn API. Perfect if you are looking for an API client or SDK for LinkedIn
MIT License
198 stars 97 forks source link

There is no extension able to load the configuration for "happyr_linkedin" (in /vagrant/app/config/config.yml). Looked for namespace "happyr_linkedin", #126

Closed sterichards closed 8 years ago

sterichards commented 8 years ago
Q A
Bug? no
New Feature? no
Are you using composer? yes
Version Specific version or SHA of a commit

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)

Nyholm commented 8 years ago

It looks like you are running Symfony. Maybe try to install the bundle: https://github.com/Happyr/LinkedInBundle

sterichards commented 8 years ago

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 :)

Nyholm commented 8 years ago

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. =)

sterichards commented 8 years ago

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 :)

Nyholm commented 8 years ago

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.