mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-25 02:43:11 +00:00
Fix neutron comment's
This commit is contained in:
@@ -72,7 +72,6 @@ use Alchemy\Phrasea\Controller\Utils\ConnectionTest;
|
|||||||
use Alchemy\Phrasea\Controller\Utils\PathFileTest;
|
use Alchemy\Phrasea\Controller\Utils\PathFileTest;
|
||||||
use Alchemy\Phrasea\Controller\User\Notifications;
|
use Alchemy\Phrasea\Controller\User\Notifications;
|
||||||
use Alchemy\Phrasea\Controller\User\Preferences;
|
use Alchemy\Phrasea\Controller\User\Preferences;
|
||||||
use Alchemy\Phrasea\Core\CLIProvider\DoctrineMigrationServiceProvider;
|
|
||||||
use Alchemy\Phrasea\Core\PhraseaExceptionHandler;
|
use Alchemy\Phrasea\Core\PhraseaExceptionHandler;
|
||||||
use Alchemy\Phrasea\Core\Event\Subscriber\LogoutSubscriber;
|
use Alchemy\Phrasea\Core\Event\Subscriber\LogoutSubscriber;
|
||||||
use Alchemy\Phrasea\Core\Event\Subscriber\PhraseaLocaleSubscriber;
|
use Alchemy\Phrasea\Core\Event\Subscriber\PhraseaLocaleSubscriber;
|
||||||
@@ -210,7 +209,6 @@ class Application extends SilexApplication
|
|||||||
$this->register(new BasketMiddlewareProvider());
|
$this->register(new BasketMiddlewareProvider());
|
||||||
|
|
||||||
$this->register(new ACLServiceProvider());
|
$this->register(new ACLServiceProvider());
|
||||||
$this->register(new DoctrineMigrationServiceProvider());
|
|
||||||
$this->register(new AuthenticationManagerServiceProvider());
|
$this->register(new AuthenticationManagerServiceProvider());
|
||||||
$this->register(new BorderManagerServiceProvider());
|
$this->register(new BorderManagerServiceProvider());
|
||||||
$this->register(new BrowserServiceProvider());
|
$this->register(new BrowserServiceProvider());
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ use Alchemy\Phrasea\Exception\RuntimeException;
|
|||||||
use Symfony\Component\Console;
|
use Symfony\Component\Console;
|
||||||
use Alchemy\Phrasea\Core\CLIProvider\CLIDriversServiceProvider;
|
use Alchemy\Phrasea\Core\CLIProvider\CLIDriversServiceProvider;
|
||||||
use Alchemy\Phrasea\Core\CLIProvider\ComposerSetupServiceProvider;
|
use Alchemy\Phrasea\Core\CLIProvider\ComposerSetupServiceProvider;
|
||||||
|
use Alchemy\Phrasea\Core\CLIProvider\DoctrineMigrationServiceProvider;
|
||||||
use Alchemy\Phrasea\Core\CLIProvider\LessBuilderServiceProvider;
|
use Alchemy\Phrasea\Core\CLIProvider\LessBuilderServiceProvider;
|
||||||
use Alchemy\Phrasea\Core\CLIProvider\PluginServiceProvider;
|
use Alchemy\Phrasea\Core\CLIProvider\PluginServiceProvider;
|
||||||
use Alchemy\Phrasea\Core\CLIProvider\SignalHandlerServiceProvider;
|
use Alchemy\Phrasea\Core\CLIProvider\SignalHandlerServiceProvider;
|
||||||
@@ -31,7 +32,6 @@ use Alchemy\Phrasea\Core\CLIProvider\TaskManagerServiceProvider;
|
|||||||
*/
|
*/
|
||||||
class CLI extends Application
|
class CLI extends Application
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Registers the autoloader and necessary components.
|
* Registers the autoloader and necessary components.
|
||||||
*
|
*
|
||||||
@@ -63,6 +63,7 @@ class CLI extends Application
|
|||||||
$this->register(new SignalHandlerServiceProvider());
|
$this->register(new SignalHandlerServiceProvider());
|
||||||
$this->register(new TaskManagerServiceProvider());
|
$this->register(new TaskManagerServiceProvider());
|
||||||
$this->register(new TranslationExtractorServiceProvider());
|
$this->register(new TranslationExtractorServiceProvider());
|
||||||
|
$this->register(new DoctrineMigrationServiceProvider());
|
||||||
|
|
||||||
$this->bindRoutes();
|
$this->bindRoutes();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1033,10 +1033,6 @@ class User
|
|||||||
*/
|
*/
|
||||||
public function getDisplayName(TranslatorInterface $translator = null)
|
public function getDisplayName(TranslatorInterface $translator = null)
|
||||||
{
|
{
|
||||||
if ($this->isTemplate() && $translator) {
|
|
||||||
return $translator->trans('modele %name%', ['%name%' => $this->getLogin()]);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($this->isTemplate()) {
|
if ($this->isTemplate()) {
|
||||||
return $this->getLogin();
|
return $this->getLogin();
|
||||||
}
|
}
|
||||||
@@ -1049,10 +1045,6 @@ class User
|
|||||||
return $this->email;
|
return $this->email;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($translator) {
|
|
||||||
return $translator->trans('Unnamed user');
|
|
||||||
}
|
|
||||||
|
|
||||||
return 'Unnamed user';
|
return 'Unnamed user';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -131,7 +131,7 @@
|
|||||||
<select name="template">
|
<select name="template">
|
||||||
<option value="">{{ 'boutton::choisir' | trans }}</option>
|
<option value="">{{ 'boutton::choisir' | trans }}</option>
|
||||||
{% for template in templates %}
|
{% for template in templates %}
|
||||||
<option value="{{ template.getId() }}">{{ template.getDisplayName(app['translator']) }}</option>
|
<option value="{{ template.getId() }}">{{ template.getLogin() }}</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
<button class="btn" type='button' id='reset_rights'>{{ 'Delete all users rights' | trans }}</button>
|
<button class="btn" type='button' id='reset_rights'>{{ 'Delete all users rights' | trans }}</button>
|
||||||
|
|||||||
@@ -60,7 +60,7 @@
|
|||||||
<select name="template_chooser" class="input-medium">
|
<select name="template_chooser" class="input-medium">
|
||||||
<option value="">{{ 'boutton::choisir' | trans }}</option>
|
<option value="">{{ 'boutton::choisir' | trans }}</option>
|
||||||
{% for template in templates %}
|
{% for template in templates %}
|
||||||
<option value="{{ template.getId() }}">{{ template.getDisplayName(app['translator']) }}</option>
|
<option value="{{ template.getId() }}">{{ template.getLogin() }}</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
<button type="submit" class="btn">{{ 'boutton::appliquer' | trans }}</button>
|
<button type="submit" class="btn">{{ 'boutton::appliquer' | trans }}</button>
|
||||||
@@ -149,7 +149,7 @@
|
|||||||
</td>
|
</td>
|
||||||
{% if usr.getLastModel() is not none %}
|
{% if usr.getLastModel() is not none %}
|
||||||
<td>
|
<td>
|
||||||
{{ usr.getLastModel().getDisplayName(app['translator'])}}
|
{{ usr.getLastModel().getLogin() }}
|
||||||
</td>
|
</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@@ -386,8 +386,6 @@ class UsersTest extends \PhraseanetAuthenticatedWebTestCase
|
|||||||
|
|
||||||
public function testPostDemands()
|
public function testPostDemands()
|
||||||
{
|
{
|
||||||
$this->markTestSkipped();
|
|
||||||
return;
|
|
||||||
$id = self::$DI['user_alt1']->getId();
|
$id = self::$DI['user_alt1']->getId();
|
||||||
$baseId = self::$DI['collection']->get_base_id();
|
$baseId = self::$DI['collection']->get_base_id();
|
||||||
$param = sprintf('%s_%s', $id, $baseId);
|
$param = sprintf('%s_%s', $id, $baseId);
|
||||||
|
|||||||
Reference in New Issue
Block a user