1 | <?php |
||
16 | class RoleManager implements RoleManagerInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $class; |
||
22 | |||
23 | /** |
||
24 | * @var \Doctrine\Common\Persistence\ObjectManager |
||
25 | */ |
||
26 | protected $entity_manager; |
||
27 | |||
28 | /** |
||
29 | * @var \Doctrine\Common\Persistence\ObjectRepository |
||
30 | */ |
||
31 | protected $entity_repository; |
||
32 | |||
33 | /** |
||
34 | * RoleManager constructor. |
||
35 | * |
||
36 | * @param \Doctrine\Common\Persistence\ManagerRegistry $manager_registry |
||
37 | * @param string $class |
||
38 | */ |
||
39 | public function __construct(ManagerRegistry $manager_registry, $class) |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function getEntityManager() |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function getEntityRepository() |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | public function getRoles() |
||
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | public function getClass() |
||
77 | |||
78 | /** |
||
79 | * {@inheritdoc} |
||
80 | */ |
||
81 | public function createRole() |
||
87 | |||
88 | /** |
||
89 | * {@inheritdoc} |
||
90 | */ |
||
91 | public function saveRole(RoleInterface $role) |
||
96 | } |
||
97 |