Commit cb44f3f0 authored by Haralan Dobrev's avatar Haralan Dobrev

Update code style - use short array syntax

parent bac2c455
...@@ -280,19 +280,19 @@ class SecurityServiceProviderTest extends WebTestCase ...@@ -280,19 +280,19 @@ class SecurityServiceProviderTest extends WebTestCase
public function testUserAsServiceString() public function testUserAsServiceString()
{ {
$users = array( $users = [
'fabien' => array('ROLE_ADMIN', '5FZ2Z8QIkA7UTZ4BYkoC+GsReLf569mSKDsfods6LYQ8t+a8EW9oaircfMpmaLbPBh4FOBiiFyLfuZmTSUwzZg=='), 'fabien' => ['ROLE_ADMIN', '5FZ2Z8QIkA7UTZ4BYkoC+GsReLf569mSKDsfods6LYQ8t+a8EW9oaircfMpmaLbPBh4FOBiiFyLfuZmTSUwzZg=='],
); ];
$app = new Application(); $app = new Application();
$app->register(new SecurityServiceProvider(), array( $app->register(new SecurityServiceProvider(), [
'security.firewalls' => array( 'security.firewalls' => [
'default' => array( 'default' => [
'http' => true, 'http' => true,
'users' => 'my_user_provider', 'users' => 'my_user_provider',
), ],
), ],
)); ]);
$app['my_user_provider'] = $app['security.user_provider.inmemory._proto']($users); $app['my_user_provider'] = $app['security.user_provider.inmemory._proto']($users);
$app->get('/', function () { return 'foo'; }); $app->get('/', function () { return 'foo'; });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment