我从我的朋友那里下载了一个Symfony项目
Composer update
和php bin/console doctrine:schema:update --force
命令没有错误
但是当我在浏览器上打开项目时出现此错误:
致命错误:未被捕捉Symfony\Component\Routing\Exception\ResourceNotFoundException in /Applications/MAMP/htdocs/Animaux/Animaux/var/cache/prod/appProdProjectContainerUrlMatcher.php:407 Stack trace: #0 /Applications/MAMP/htdocs/Animaux/Animaux/vendor/symfony/symfony/src/Symfony/Component/Routing/Matcher/UrlMatcher.php(90): appProdProjectContainerUrlMatcher->match('/app_dev.app/') #1 /Applications/MAMP/htdocs/Animaux/Animaux/vendor/symfony/symfony/src/Symfony/Component/Routing/Router.php(262): Symfony\Component\Routing\Matcher\UrlMatcher->matchRequest(Object(Symfony\Component\HttpFoundation\Request)) #2 /Applications/MAMP/htdocs/Animaux/Animaux/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php(104): Symfony\Component\Routing\Router->matchRequest(Object(Symfony\Component\HttpFoundation\Request)) #3 [internal function]: Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest(Object(Symfony\Component\HttpKernel\Event\GetResponseEvent), 'kernel.request', Object(Symfony\ in /Applications/MAMP/htdocs/Animaux/Animaux/vendor/twig/twig/lib/Twig/Loader/Filesystem.php on line 101
请帮帮我
答案 0 :(得分:3)
<TextView
android:layout_width="match_parent"
android:layout_height="200dp"
app:autoSizeTextType="uniform" />
- 这是一个坏主意。对于正常开发或迁移到生产,您需要使用相同版本的依赖项,项目必须提供Composer update
文件(依赖项的版本),并且您需要使用composer.lock
而不是{{ 1}}。composer install
这意味着您没有清除缓存,因为开发使用Composer update
进行生产 - 清除缓存...Animaux/var/cache/prod/app...