Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removed compatibility code for older Doctrine versions

  • Loading branch information...
commit 54b04e183dd2949841fd0faf085ddb53cf3d5e7d 1 parent e1aa5d6
Johannes authored
Showing with 0 additions and 21 deletions.
  1. +0 −21 Annotation/PreAuthorize.php
21 Annotation/PreAuthorize.php
View
@@ -35,25 +35,4 @@
* @var string
*/
public $expr;
-
- public function __construct()
- {
- if (0 === func_num_args()) {
- return;
- }
- $values = func_get_arg(0);
-
- if (isset($values['value'])) {
- $values['expr'] = $values['value'];
- }
- if (!isset($values['expr'])) {
- throw new InvalidArgumentException('The "expr" attribute must be set for annotation @PreAuthorize.');
- }
-
- if (!is_string($values['expr'])) {
- throw new InvalidArgumentException(sprintf('The "expr" attribute of annotation @PreAuthorize must be a string, but got "%s".', gettype($values['expr'])));
- }
-
- $this->expr = $values['expr'];
- }
}
Please sign in to comment.
Something went wrong with that request. Please try again.