forked from nette/security
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompatibility.php
More file actions
37 lines (31 loc) · 809 Bytes
/
Copy pathcompatibility.php
File metadata and controls
37 lines (31 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* This file is part of the Nette Framework (https://nette.org)
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Nette\Security;
if (false) {
/** @deprecated use Nette\Security\Authorizator */
interface IAuthorizator extends Authorizator
{
}
} elseif (!interface_exists(IAuthorizator::class)) {
class_alias(Authorizator::class, IAuthorizator::class);
}
if (false) {
/** @deprecated use Nette\Security\Resource */
interface IResource extends Resource
{
}
} elseif (!interface_exists(IResource::class)) {
class_alias(Resource::class, IResource::class);
}
if (false) {
/** @deprecated use Nette\Security\Role */
interface IRole extends Role
{
}
} elseif (!interface_exists(IRole::class)) {
class_alias(Role::class, IRole::class);
}