mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Fix Cs
This commit is contained in:
@@ -110,10 +110,10 @@ use Symfony\Component\HttpFoundation\Response;
|
||||
class Application extends SilexApplication
|
||||
{
|
||||
private static $availableLanguages = array(
|
||||
'de_DE' => 'Deutsch'
|
||||
, 'en_GB' => 'English'
|
||||
, 'fr_FR' => 'Français'
|
||||
, 'nl_NL' => 'Dutch'
|
||||
'de_DE' => 'Deutsch',
|
||||
'en_GB' => 'English',
|
||||
'fr_FR' => 'Français',
|
||||
'nl_NL' => 'Dutch',
|
||||
);
|
||||
private $environment;
|
||||
private $sessionCookieEnabled = true;
|
||||
@@ -204,9 +204,9 @@ class Application extends SilexApplication
|
||||
if ($app['phraseanet.registry']->get('GV_smtp')) {
|
||||
|
||||
$transport = new \Swift_Transport_EsmtpTransport(
|
||||
$app['swiftmailer.transport.buffer'],
|
||||
array($app['swiftmailer.transport.authhandler']),
|
||||
$app['swiftmailer.transport.eventdispatcher']
|
||||
$app['swiftmailer.transport.buffer'],
|
||||
array($app['swiftmailer.transport.authhandler']),
|
||||
$app['swiftmailer.transport.eventdispatcher']
|
||||
);
|
||||
|
||||
$options = $app['swiftmailer.options'] = array_replace(array(
|
||||
|
@@ -32,8 +32,8 @@ class Dashboard implements ControllerProviderInterface
|
||||
$controllers = $app['controllers_factory'];
|
||||
|
||||
$controllers->before(function(Request $request) use ($app) {
|
||||
$app['firewall']->requireAdmin();
|
||||
});
|
||||
$app['firewall']->requireAdmin();
|
||||
});
|
||||
|
||||
/**
|
||||
* Get admin dashboard
|
||||
|
@@ -555,7 +555,6 @@ class Users implements ControllerProviderInterface
|
||||
$message .= "\n" . _('login::register:email: Vous avez ete refuse sur les collections suivantes : ') . implode(', ', $deny) . "\n";
|
||||
}
|
||||
|
||||
|
||||
$receiver = new Receiver(null, $row['usr_mail']);
|
||||
$mail = MailSuccessEmailUpdate::create($this->app, $receiver, null, $message);
|
||||
|
||||
@@ -784,7 +783,6 @@ class Users implements ControllerProviderInterface
|
||||
return $app->redirect('/admin/users/search/?user-updated=' . $nbCreation);
|
||||
})->bind('users_submit_import');
|
||||
|
||||
|
||||
$controllers->get('/import/example/csv/', function(Application $app, Request $request) {
|
||||
|
||||
$file = new \SplFileInfo($app['phraseanet.registry']->get('GV_RootPath') . 'lib/Fixtures/exampleImportUsers.csv');
|
||||
|
Reference in New Issue
Block a user