Add getAuthenticator usage

Replace $app['authentication']->getUser() by $app->getAuthenticatedUser()
replace twig app['authentication'].getUser() with corresponding method
This commit is contained in:
Benoît Burnichon
2015-06-30 19:51:02 +02:00
parent 3804eb5408
commit 4880f2bf5a
113 changed files with 437 additions and 428 deletions

View File

@@ -1,7 +1,7 @@
{% extends 'prod/Tooltip/Tooltip.html.twig' %}
{% set title %}
app['authentication'].getUser().getDisplayName()
app.getAuthenticatedUser().getDisplayName()
{% endset %}
{% set width = 300 %}
{% set maxwidth = null %}
@@ -12,12 +12,12 @@
<img style="margin:14px 8px;" src="/skins/icons/user.png"/>
</div>
<div class="PNB" style="left:100px;">
<h1> {{ app['authentication'].getUser().getDisplayName() }}</h1>
<h1> {{ app.getAuthenticatedUser().getDisplayName() }}</h1>
<ul>
<li>{{ app['authentication'].getUser().getEmail() }}</li>
<li>{{ app['authentication'].getUser().getCompany() }}</li>
<li>{{ app['authentication'].getUser().getJob() }}</li>
<li>{{ app['authentication'].getUser().getActivity() }}</li>
<li>{{ app.getAuthenticatedUser().getEmail() }}</li>
<li>{{ app.getAuthenticatedUser().getCompany() }}</li>
<li>{{ app.getAuthenticatedUser().getJob() }}</li>
<li>{{ app.getAuthenticatedUser().getActivity() }}</li>
</ul>
</div>
</div>