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

[Insight] Missing use statement should be avoided - in Bundle/…/Controller/I18nController.php, line 41 #4

Closed
lenybernard opened this issue Nov 19, 2014 · 1 comment

Comments

@lenybernard
Copy link
Contributor

in Bundle/I18nBundle/Controller/I18nController.php, line 41

The BusinessEntityPagePattern class resolves to the following class: Victoire\Bundle\BusinessEntityPageBundle\Entity\BusinessEntityPagePattern.
Did you forget to add a corresponding use statement?

        $businessEntityHelper = $this->get('victoire_core.helper.business_entity_helper');

        $businessProperties = array();

        //if the page is a business entity page
        if ($page instanceof BusinessEntityPagePattern) {
            //get the id of the business entity
            $businessEntityId = $page->getBusinessEntityName();
            //we can use the business entity properties on the seo
            $businessEntity = $businessEntityHelper->findById($businessEntityId);

Posted from SensioLabsInsight

@FloSeas
Copy link
Contributor

FloSeas commented Nov 19, 2014

ouep

Le Mercredi 19 novembre 2014 21h15, Leny BERNARD [email protected] a écrit :

in Bundle/I18nBundle/Controller/I18nController.php, line 41
The BusinessEntityPagePattern class resolves to the following class: Victoire\Bundle\BusinessEntityPageBundle\Entity\BusinessEntityPagePattern.

Did you forget to add a corresponding use statement?
$businessEntityHelper = $this->get('victoire_core.helper.business_entity_helper'); $businessProperties = array(); //if the page is a business entity page if ($page instanceof BusinessEntityPagePattern) { //get the id of the business entity $businessEntityId = $page->getBusinessEntityName(); //we can use the business entity properties on the seo $businessEntity = $businessEntityHelper->findById($businessEntityId);


Posted from SensioLabsInsight

Reply to this email directly or view it on GitHub.

@FloSeas FloSeas closed this as completed Nov 20, 2014
lenybernard pushed a commit that referenced this issue May 12, 2015
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

2 participants