資格情報を実装するには、次のような preExecute 関数を実装する必要がありますか?
public function preExecute() {
$this->configuration = new jobGeneratorConfiguration();
if (!$this->getUser()->hasCredential(
$this->configuration->getCredentials($this->getActionName())
));
}
または、次のように module/config/security.yml で定義するだけで十分ですか:
all:
is_secure: true
credentials: [ admin ]
ただし、security.yml のみを使用して解決することはできません。preExecute は必要ないと思っていたので、symfony は security.yml 定義をロードすることで自動的にそれを処理します! 助けてください!
私は sfDoctrineGuardPlugin と sfForkedDoctrineApply プラグインを使用しています..