Sto cercando di installare il seguente progetto connect su osx lion.
cd /tmp git clone git://github.com/dsyph3r/connect cd connect git submodule update --init php bin/vendors install
Quando eseguo il seguente command php bin/vendors install
ottengo i seguenti messaggi:
[Symfony\Component\Config\Exception\FileLoaderLoadException] Cannot import resource "parameters.ini" from "/private/tmp/connect/app/config/config.yml".
Al fine di correggere il seguente errore ho fatto:
cp app/config/parameters.ini.dist app/config/parameters.ini
Quindi quando eseguo il seguente command php bin/vendors install
ottengo il seguente errore:
PHP Fatal error: Class 'FOS\Rest\Util\Codes' not found in /private/tmp/connect/vendor/bundles/FOS/RestBundle/DependencyInjection/Configuration.php on line 115 Fatal error: Class 'FOS\Rest\Util\Codes' not found in /private/tmp/connect/vendor/bundles/FOS/RestBundle/DependencyInjection/Configuration.php on line 115 PHP Fatal error: Class 'FOS\Rest\Util\Codes' not found in /private/tmp/connect/vendor/bundles/FOS/RestBundle/DependencyInjection/Configuration.php on line 115 Fatal error: Class 'FOS\Rest\Util\Codes' not found in /private/tmp/connect/vendor/bundles/FOS/RestBundle/DependencyInjection/Configuration.php on line 115
Cosa mi sono perso?
Suppongo che ora il problema sia nella mia app/config/parameters.ini
.
Come dovrebbe essere?
C'è una voce nel file deps per FOSRestBundle, ma non per la libreria FOSRest. Guarda la documentazione di installazione di FOSRestBundle , mostra come dovrebbe apparire il file deps. Immagino che questo fosse un progetto 7 mesi fa, e deve essere stato diviso dopo.