# Class Shopware\\Storefront\\Controller\\StorefrontController not found

**URL:** <https://forum.shopware.com/t/class-shopware-storefront-controller-storefrontcontroller-not-found/64821>\
**Category:** Programming (EN)\
**Created:** [19. Februar 2020 um 07:25 UTC](https://forum.shopware.com/t/class-shopware-storefront-controller-storefrontcontroller-not-found/64821 "2020-02-19T07:25:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Post date:** [19. Februar 2020 um 07:25 UTC](https://forum.shopware.com/t/class-shopware-storefront-controller-storefrontcontroller-not-found/64821/1 "2020-02-19T07:25:52Z")

</div>

I got this error from Shopware code review

Warnings of the static code analysis:  
------ -------------------------------------------------------------------------&nbsp;  
&nbsp; Line &nbsp; src/Storefront/Controller/ShoppingExperienceController.php &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;  
&nbsp;------ -------------------------------------------------------------------------&nbsp;  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Class Shopware\Storefront\Controller\StorefrontController not found and &nbsp;  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;could not be autoloaded.&nbsp;

But I have included&nbsp;

use Shopware\Storefront\Controller\StorefrontController;

in my controller&nbsp;

Then why this error?

---

<div class="post-metadata">

**Author:** ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Post date:** [19. Februar 2020 um 07:27 UTC](https://forum.shopware.com/t/class-shopware-storefront-controller-storefrontcontroller-not-found/64821/2 "2020-02-19T07:27:20Z")

</div>

"Did you add&nbsp;`"shopware/storefront": "~6.1.0"`&nbsp;to your require section of the composer.json?

the automatic code review will only install the components you have set in the composer.json. not a whole Shopware" - Michael Telhmann
