<?php if (!function_exists('current_user')) { function current_user() { return service('auth')->getCurrentUser(); } }
info at phpclasses dot org