joomla-framework/application — pull request #27 by rkgrep (2014-08-22 19:14:17+00:00)
Title: User ID in application

A replace to

// @todo we need the user id somehow here
$userId = 0;

Why don't use a variable and method to store user identifier in application?
The method can be overried in child classes and variable set in doExecute() method.