SymfonyのACLシステムを使用したいのですが、データベースを初期化できません。私はここのステップを踏んだHow to Use Access Control List (ACL's)しかし、私はコンソールコマンドを実行するときThere are no commands defined in the "init" namespace.
symfony init:aclコマンドがありません
私は自分のAppKernel new Symfony\Bundle\SecurityBundle\SecurityBundle()
でSecurityBundleを定義しました。そして、ここに私のsecurity.ymlがあります。
# security.yml
security:
acl:
connection: default
私は何が欠けているのかよく分かりません。私はそれが構成の問題である可能性が高いことは理解しています。 symfonyのライブラリにコマンドを見て、私は
<?php
class InitAclCommand extends ContainerAwareCommand
{
/**
* {@inheritdoc}
*/
public function isEnabled()
{
if (!$this->getContainer()->has('security.acl.dbal.connection')) {
return false;
}
return parent::isEnabled();
}
//...
}
私の推測ではisEnabled()
で見ることはfalseを返すが、私はこのための構成を設定したものか、どこか分からないです。
私はsymfonyの3.1.9を使用していますが、PHP7.0
おかげ