title: Class not found error only on production server
body: <p>I'm working on a project using Silex. In a particular file, I've added a <code>use</code> statement to have the autoloader include a particular php file. Later in the file, I use that class. All is well on the development server, but when I move to production, I get a <code>Fatal error: Class not found</code> message. Edit: Both servers now use PHP 5.4.4.</p>
  
  <p>Are there any kind of installation specific issues that might be causing this? I can confirm that both namespace autoload files generated by composer are the same.</p>
  
  <p>Just for the sake of thoroughness, here is the include statement:</p>
  
  <pre><code>use Instaphp;
  </code></pre>
  
  <p>Here is the use of the class later in the code:</p>
  
  <pre><code>$app['instaphp'] = $app-&gt;share(function() use ($app) {
              if($app['tagframe.instagram_token'] === null) {
                  return Instaphp\Instaphp::Instance();
              } else {
                  return Instaphp\Instaphp::Instance($app['tagframe.instagram_token']);
              }
          });
  
          $app['instaphp.config'] = $app-&gt;share(function() use ($app) {
              return Instaphp\Config::Instance();
          });
  </code></pre>
  
  <p>Here is the exact error: </p>
  
  <pre><code>Fatal error: Class 'Instaphp\Config' not found in /var/www/silexsandbox/src/TagFrame/Silex/TagFrameServiceProvider.php on line 89
  </code></pre>
  
  <p>Update: I should add that I have experienced no such errors anywhere else in the fairly large code base I'm working on, so I know it's not as simple as ALL namespaces not working.</p>