@@ -21,7 +21,7 @@ |
||
21 | 21 | { |
22 | 22 | |
23 | 23 | |
24 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
24 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
25 | 25 | $loader->load('services.yml'); |
26 | 26 | } |
27 | 27 | } |
@@ -112,7 +112,7 @@ |
||
112 | 112 | } |
113 | 113 | } |
114 | 114 | $username = strtolower($username); |
115 | - $pattern = $this->getConfig('username_validation_pattern', '/^[a-z0-9-.]+$/i'); |
|
115 | + $pattern = $this->getConfig('username_validation_pattern', '/^[a-z0-9-.]+$/i'); |
|
116 | 116 | if (preg_match($pattern, $username)) { |
117 | 117 | return $username; |
118 | 118 | } |
@@ -21,6 +21,10 @@ |
||
21 | 21 | /** @var string */ |
22 | 22 | private $email; |
23 | 23 | |
24 | + /** |
|
25 | + * @param string $username |
|
26 | + * @param string $password |
|
27 | + */ |
|
24 | 28 | public function __construct($username, $password, array $roles) |
25 | 29 | { |
26 | 30 | $this->username = $username; |