forked from KnpLabs/KnpUserBundle
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathGroupManagerNone.php
More file actions
45 lines (38 loc) · 1.27 KB
/
GroupManagerNone.php
File metadata and controls
45 lines (38 loc) · 1.27 KB
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
38
39
40
41
42
43
44
45
<?php
/*
* This file is part of the FOSUserBundle package.
*
* (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FOS\UserBundle\Model;
/**
* Fallback Group Manager implementation when db_driver is not configured.
*
* @author Andrey F. Mindubaev <andrey@mindubaev.ru>
*/
class GroupManagerNone extends GroupManager
{
public function deleteGroup(GroupInterface $group)
{
throw new \RuntimeException('The child node "db_driver" at path "fos_user" must be configured.');
}
public function findGroupBy(array $criteria)
{
throw new \RuntimeException('The child node "db_driver" at path "fos_user" must be configured.');
}
public function findGroups()
{
throw new \RuntimeException('The child node "db_driver" at path "fos_user" must be configured.');
}
public function getClass()
{
throw new \RuntimeException('The child node "db_driver" at path "fos_user" must be configured.');
}
public function updateGroup(GroupInterface $group)
{
throw new \RuntimeException('The child node "db_driver" at path "fos_user" must be configured.');
}
}