src/Oro/Bundle/SecurityBundle/Annotation/AclAncestor.php 1 location
|
@@ 29-31 (lines=3) @@
|
| 26 |
|
} |
| 27 |
|
|
| 28 |
|
$this->id = isset($data['value']) ? $data['value'] : null; |
| 29 |
|
if (empty($this->id) || strpos($this->id, ' ') !== false) { |
| 30 |
|
throw new \InvalidArgumentException('ACL id must not be empty or contain blank spaces.'); |
| 31 |
|
} |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
/** |
src/Oro/Bundle/SecurityBundle/Annotation/Acl.php 1 location
|
@@ 66-68 (lines=3) @@
|
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
$this->id = isset($data['id']) ? $data['id'] : null; |
| 66 |
|
if (empty($this->id) || strpos($this->id, ' ') !== false) { |
| 67 |
|
throw new \InvalidArgumentException('ACL id must not be empty or contain blank spaces.'); |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
$this->type = isset($data['type']) ? $data['type'] : null; |
| 71 |
|
if (empty($this->type)) { |