/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/authorization/docs/en
NameSizeModeActions
2-0-migration-guide.rst7900644editdlrm
checking-authorization.rst21380644editdlrm
component.rst45030644editdlrm
conf.py2610644editdlrm
contents.rst2550644editdlrm
index.rst38560644editdlrm
middleware.rst109120644editdlrm
policies.rst42430644editdlrm
policy-resolvers.rst53340644editdlrm
request-authorization-middleware.rst29390644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/authorization/docs/en/2-0-migration-guide.rst (790B)
2.0 Migration Guide ################### Authorization 2.0 contains new features and a few breaking changes. Breaking Changes ================ The ``IdentityInterface`` has had typehinting added. If you have implemented the ``IdentityInterface`` you will need to update your application's implementation to reflect the new typehints. In addition to typehints ``IdentityInterface`` has a ``canResult()`` method added. This method always returns a ``ResultInterface`` object while ``can()`` always returns a boolean. In 1.x the ``can()`` method would return a boolean or ``ResultInterface`` depending on what the policy returned. This made knowing the return value of ``can()`` very hard. The new methods and additional typings make ``IdentityInterface`` simpler and more reliable to use.