php - Call to undefined method ComposerAutoloaderInitd7d23b5370abd20e3e13775fdd372b42::getLoader() -


i making way through silex tutorial, encountering problems composer.

i'm starting off standard tutorial on silex site:

<?php  require(__dir__. '/../vendor/autoload.php');  $app = new silex\application();   $app->get('/hello/{name}', function ($name) use ($app) {     return $app->json(array('hello' => $app->escape($name)) ); });  $app['debug'] = true; $app->run(); 

on local dev environment, getting error:

fatal error: call undefined method composerautoloaderinitd7d23b5370abd20e3e13775fdd372b42::getloader() in c:\wamp\www\webservices\vendor\autoload.php on line 7 

however when tried on machine (an amazon ec2 instance running ubuntu 12.10, php 5.4.6 , apache/2.2.22) , got expected behavior.

i think it's problem apache/php config on local.

edit: it's not exclusively composer problem, encountered same behavior while using class_http troy wolf

also add weirdness, it'll work fine few seconds after apache freshly initialized, goes pieces.


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -