我得到這個錯誤,任何人都知道如何解決它!當我在symfony2.0中運行init:acl時,你已經請求了一個不存在的服務「security.acl.dbal.connection」
You have requested a non-existent service "security.acl.dbal.connection"
我得到這個錯誤,任何人都知道如何解決它!當我在symfony2.0中運行init:acl時,你已經請求了一個不存在的服務「security.acl.dbal.connection」
You have requested a non-existent service "security.acl.dbal.connection"
您需要在您的應用程序中啓用ACL支持。該行添加到您的security.yml
配置文件:
acl:
connection: default
然後再次運行php app/console init:acl
。
既不適合我。這項服務實際上是不可用的...
工作或沒有,如果你只是使用更新的架構..! 。「php app/console do:sch:upd --force」,FW會用ACL表更新你的數據庫,並解決問題:) – mmoreram
只是爲了高擡頭,acl
關鍵字應該放在security
關鍵字後面的行上。如果你只把
acl:
connection: default
在你security.yml
文件的頂部,你可能會得到這個錯誤。我正在引用它,以便人們可以通過使用錯誤搜索來進入該主題。
[Symfony\Component\Config\Exception\FileLoaderLoadException]
Cannot import resource "/home/jupiter/symfony/cupon/app/config/secu
rity.yml" from "/home/jupiter/symfony/cupon/app/config/config.yml".
(There is no extension able to load the configuration for "acl"
(in /home/jupiter/symfony/cupon/app/config/security.yml). Looked for
namespace "acl", found "framework", "security", "twig", "monolog",
"swiftmailer", "assetic", "doctrine", "sensio_framework_extra", "ci
udad", "usuario", "tienda", "oferta", "backend", "ideup_simple_pagi
nator", "web_profiler", "sensio_distribution")
[Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]
There is no extension able to load the configuration for "acl" (in
/home/jupiter/symfony/cupon/app/config/security.yml). Looked for na
mespace "acl", found "framework", "security", "twig", "monolog", "s
wiftmailer", "assetic", "doctrine", "sensio_framework_extra", "ciud
ad", "usuario", "tienda", "oferta", "backend", "ideup_simple_pagina
tor", "web_profiler", "sensio_distribution"
所以只要確保acl
之後security
關鍵字:
security:
acl:
connection: default
這並沒有爲我工作:( – hgf
偉大的工程謝謝 –