@@ -24,7 +24,7 @@ |
||
| 24 | 24 | * @package symfony |
| 25 | 25 | * @subpackage Command |
| 26 | 26 | */ |
| 27 | -#[AsCommand(name: 'aimeos:account', description: 'Creates new (admin) accounts')] |
|
| 27 | +#[AsCommand( name: 'aimeos:account', description: 'Creates new (admin) accounts' )] |
|
| 28 | 28 | class AccountCommand extends Command |
| 29 | 29 | { |
| 30 | 30 | private $container; |
@@ -82,9 +82,12 @@ |
||
| 82 | 82 | |
| 83 | 83 | $manager = \Aimeos\MShop::create( $context, 'customer' ); |
| 84 | 84 | |
| 85 | - try { |
|
| 85 | + try |
|
| 86 | + { |
|
| 86 | 87 | $item = $manager->find( $email, ['customer/group'] ); |
| 87 | - } catch( \Aimeos\MShop\Exception $e ) { |
|
| 88 | + } |
|
| 89 | + catch( \Aimeos\MShop\Exception $e ) |
|
| 90 | + { |
|
| 88 | 91 | $item = $manager->create(); |
| 89 | 92 | } |
| 90 | 93 | |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | - Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true], |
|
| 5 | - Symfony\Bundle\WebServerBundle\WebServerBundle::class => ['dev' => true], |
|
| 6 | - Aimeos\ShopBundle\AimeosShopBundle::class => ['all' => true], |
|
| 4 | + Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true], |
|
| 5 | + Symfony\Bundle\WebServerBundle\WebServerBundle::class => ['dev' => true], |
|
| 6 | + Aimeos\ShopBundle\AimeosShopBundle::class => ['all' => true], |
|
| 7 | 7 | ]; |
| 8 | 8 | \ No newline at end of file |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | \Aimeos\MShop::cache( false ); |
| 13 | 13 | \Aimeos\Controller\Frontend::cache( false ); |
| 14 | 14 | |
| 15 | - (new \Symfony\Component\Filesystem\Filesystem())->remove( __DIR__ . '/../Fixtures/var/cache/sessions' ); |
|
| 15 | + ( new \Symfony\Component\Filesystem\Filesystem() )->remove( __DIR__ . '/../Fixtures/var/cache/sessions' ); |
|
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | |