不能 运行 使用 Symfony 的项目
Cannot run a project with Symfony
我已经全局安装了 composer,当我尝试命令时:
php bin/console server:run
我遇到以下异常:
Fatal error: require(): Failed opening required 'C:\xampp\htdocsgag\app/../vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocsgag\app\autoload.php on line 7
这是 autoload.php 文件:
<?php
use Doctrine\Common\Annotations\AnnotationRegistry;
use Composer\Autoload\ClassLoader;
/** @var ClassLoader $loader */
$loader = require __DIR__.'/../vendor/autoload.php';
AnnotationRegistry::registerLoader([$loader, 'loadClass']);
return $loader;
有什么想法吗?
尝试安装 供应商:
composer install
或者
php composer.phar install
然后运行:
php bin/console server:start
我已经全局安装了 composer,当我尝试命令时:
php bin/console server:run
我遇到以下异常:
Fatal error: require(): Failed opening required 'C:\xampp\htdocsgag\app/../vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocsgag\app\autoload.php on line 7
这是 autoload.php 文件:
<?php
use Doctrine\Common\Annotations\AnnotationRegistry;
use Composer\Autoload\ClassLoader;
/** @var ClassLoader $loader */
$loader = require __DIR__.'/../vendor/autoload.php';
AnnotationRegistry::registerLoader([$loader, 'loadClass']);
return $loader;
有什么想法吗?
尝试安装 供应商:
composer install
或者
php composer.phar install
然后运行:
php bin/console server:start