I am working on a Symfony 2 website, and having an issue only in production (cache is clear).
I am using the Payplug php api : I' ve put the files in the vendor folder, I use the namespace for the classes I use, and everything is ok on my local dev environment.
Once on the prod server, I get the error:
"Attempted to load class "Payplug" from namespace "Payplug". Did you forget a "use" statement for another namespace?"
I don't get why it gets a namespace error only on the prod server...
CONTROLLER :
<?php namespace KpmBundle\Controller; use KpmBundle\Entity\Marche; use KpmBundle\Entity\Marcheur; use KpmBundle\Entity\Commande; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use Payplug\Payplug as Payplug; use Payplug\Payment as Payment; class MarcheController extends Controller { //code Payplug::setSecretKey(...); //more code } CLASS
<?php namespace Payplug; /** * The Payment DAO simplifies the access to most useful methods **/ class Payment { I really wonder why everything works fine on my local dev server ( app_dev.php and app.php ), but goes wrong on prod server...
Any idea would be appreciated,
regards
EDIT The files where installed via composer