adambisek / secured-links
Package secures Nette Framework signals against CSRF attack.
v1.4.0
2016-08-04 07:32 UTC
Requires
- php: >=5.4
- nette/application: ^2.4
- nette/utils: ^2.4
Requires (Dev)
- mockery/mockery: ~0.9
- nette/tester: ~1.7
This package is not auto-updated.
Last update: 2024-11-09 20:28:20 UTC
README
SecuredLinksTrait creates secured signal links. PHP 5.4+ ONLY
forked from nextras/secured-links
Installation
The best way to install is using Composer:
$ composer require adambisek/secured-links
Usage of SecuredLinksTrait
abstract class BasePrenseter extends Nette\Application\UI\Presenter { use Nextras\Application\UI\SecuredLinksPresenterTrait; } class MyPresenter extends BasePresenter { /** * @secured */ public function handleDelete($id) { } } abstract class BaseControl extends Nette\Application\UI\Control { use Nextras\Application\UI\SecuredLinksControlTrait; } class MyControl extends BaseControl { /** * @secured */ public function handleDelete($id) { } }