Skip to content

Commit

Permalink
Merge pull request #1949 from XWB/verb
Browse files Browse the repository at this point in the history
Use verb rather than noun
  • Loading branch information
XWB committed Sep 15, 2015
2 parents 3b63b2e + ff1932d commit 1b13cfd
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion EventListener/AuthenticationListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function authenticate(FilterUserResponseEvent $event, $eventName = null,
}

try {
$this->loginManager->loginUser($this->firewallName, $event->getUser(), $event->getResponse());
$this->loginManager->logInUser($this->firewallName, $event->getUser(), $event->getResponse());

$eventDispatcher->dispatch(FOSUserEvents::SECURITY_IMPLICIT_LOGIN, new UserEvent($event->getUser(), $event->getRequest()));
} catch (AccountStatusException $ex) {
Expand Down
2 changes: 1 addition & 1 deletion Resources/doc/command_line_tools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ An example is provided below:
$ php app/console fos:user:create adminuser --super-admin
If you specify the ``--inactive`` option, then the user that you create will no be
able to login until he is activated.
able to log in until he is activated.

.. code-block:: bash
Expand Down
2 changes: 1 addition & 1 deletion Resources/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ You now can run the following command to create the model:
To create SQL, run the command ``propel:build --insert-sql`` or use migration
commands if you have an existing schema in your database.

You now can login at ``http://app.com/app_dev.php/login``!
You now can log in at ``http://app.com/app_dev.php/login``!

Next Steps
~~~~~~~~~~
Expand Down
6 changes: 3 additions & 3 deletions Resources/translations/FOSUserBundle.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ security:
username: Username
password: Password
remember_me: Remember me
submit: Login
submit: Log in

# Profile
profile:
Expand Down Expand Up @@ -77,8 +77,8 @@ resetting:
# Global strings
layout:
logout: Logout
login: Login
logout: Log out
login: Log in
register: Register
logged_in_as: Logged in as %username%

Expand Down
2 changes: 1 addition & 1 deletion Security/LoginManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function __construct($tokenStorage, UserCheckerInterface $userChecker,
$this->container = $container;
}

final public function loginUser($firewallName, UserInterface $user, Response $response = null)
final public function logInUser($firewallName, UserInterface $user, Response $response = null)
{
$this->userChecker->checkPostAuth($user);

Expand Down
2 changes: 1 addition & 1 deletion Security/LoginManagerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ interface LoginManagerInterface
*
* @return void
*/
public function loginUser($firewallName, UserInterface $user, Response $response = null);
public function logInUser($firewallName, UserInterface $user, Response $response = null);
}

0 comments on commit 1b13cfd

Please sign in to comment.