Bladeren bron

refactory

Guillermo Espinoza 8 jaren geleden
bovenliggende
commit
6ece7b08e6
2 gewijzigde bestanden met toevoegingen van 0 en 41 verwijderingen
  1. 0 33
      Resources/views/layout.html.twig
  2. 0 8
      Security/Core/User/CustomOAuthUser.php

+ 0 - 33
Resources/views/layout.html.twig

@@ -1,33 +0,0 @@
-<!DOCTYPE html>
-<html>
-    <head>
-        <meta charset="UTF-8" />
-    </head>
-    <body>
-        <div>
-            {% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
-                {{ 'layout.logged_in_as'|trans({'%username%': app.user.username}, 'FOSUserBundle') }} |
-                <a href="{{ path('fos_user_security_logout') }}">
-                    {{ 'layout.logout'|trans({}, 'FOSUserBundle') }}
-                </a>
-            {% else %}
-                <a href="{{ path('fos_user_security_login') }}">{{ 'layout.login'|trans({}, 'FOSUserBundle') }}</a>
-            {% endif %}
-        </div>
-
-        {% if app.request.hasPreviousSession %}
-            {% for type, messages in app.session.flashbag.all() %}
-                {% for message in messages %}
-                    <div class="flash-{{ type }}">
-                        {{ message }}
-                    </div>
-                {% endfor %}
-            {% endfor %}
-        {% endif %}
-
-        <div>
-            {% block fos_user_content %}
-            {% endblock fos_user_content %}
-        </div>
-    </body>
-</html>

+ 0 - 8
Security/Core/User/CustomOAuthUser.php

@@ -12,14 +12,6 @@ class CustomOAuthUser extends OAuthUser
      */
     protected $roles = array('ROLE_USER');
 
-    
-    /**
-     * @return int
-     */
-    public function getId()
-    {
-        return $this->id;
-    }
 
     /**
      * {@inheritdoc}