1 | <?php |
||
14 | class DataUtilityServiceProvider implements ServiceProviderInterface |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * Check if the given password complies with our password policy. |
||
19 | * |
||
20 | * @param string $password |
||
21 | * @param int $minLength The minimum length for the password |
||
22 | * @param string $regex The regex for checking the password character classes |
||
23 | * @return bool True if the given password complies with the password policy, false otherwise. |
||
24 | */ |
||
25 | private static function checkPasswordPolicy($password, $minLength = 8, $regex = '/^.*([0-9]+.*[^0-9a-zA-Z]+|[^0-9a-zA-Z]+.*[0-9]+)+.*$/') |
||
35 | |||
36 | /** |
||
37 | * Replaces certain prefixes of an OU to retrieve the mailbox name. |
||
38 | * |
||
39 | * @param string $ou |
||
40 | * @return string The modified string |
||
41 | */ |
||
42 | private static function getMailFromOu($ou) |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public function register(Application $app) |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | public function boot(Application $app) |
||
71 | } |
||
72 |