Are deprecated methods/macros secure?

Notice: This thread is very old.
pseudonym
Member | 57
+
0
-

Hi,
I migrated from Nette 2.0.1 to Nette 2.0.12 and now I have in my project some deprecated methods/macros. I wonder if there is somewhere some kind of list of deprecated methods/macros and their replacements?

For instance in Static ACL (https://doc.nette.org/…thentication) there is used macro User::INACTIVITY which is deprecated in Nette 2.0.12. It is secure to use this macro? Or is there any replacement for this macro which is not deprecated?

Thanks in advance for your replies ;-)

Majkl578
Moderator | 1364
+
0
-

In the context of Nette 2.0.x, it is safe. But that might not be true for next version 2.1 though. :)
In this case, you should use IUserStorage::INACTIVITY directly (btw it's constant, not macro).

pseudonym
Member | 57
+
0
-

Yes, of course it is constant ;-)

Thanks for information.