public function init() { $this->before[] = 'beforeAction'; if (self::$beforeCallback) { $this->before[] = self::$beforeCallback; } }