igdr / token-auth-bundle
该软件包的最新版本(dev-master)没有可用的许可证信息。
Token Auth Bundle
dev-master
2016-06-06 14:11 UTC
Requires
- php: >=5.3.3
- doctrine/doctrine-bundle: ~1.2
- doctrine/orm: ~2.2,>=2.2.3
- symfony/symfony: >=2.4
This package is not auto-updated.
Last update: 2024-09-14 19:14:43 UTC
README
安装
将软件包添加到您的 composer.json
composer require igdr/token-auth-bundle
然后将 IgdrEmployeeBundle 添加到您的应用程序内核
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
new Igdr\Bundle\TokenAuthBundle\IgdrTokenAuthBundle(),
// ...
);
}
config.yml
doctrine:
orm:
....
resolve_target_entities:
Symfony\Component\Security\Core\User\UserInterface: App\Bundle\UserBundle\Entity\User
securiry.yml
security:
firewalls:
api_token_secured:
pattern: ^/api/.*
stateless: true
api_token: true
anonymous: true
console: php app/console doctrine:schema:update --force