Skip to content

Commit

Permalink
refactor(any): better for ide helper
Browse files Browse the repository at this point in the history
  • Loading branch information
doyouhaobaby committed Apr 16, 2020
1 parent 46bfaa5 commit 3ee85d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common/Infra/Provider/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ public static function isDeferred(): bool
private function permission(): void
{
$this->container->singleton('permission', function (IContainer $container): Permission {
$token = $container->make('request')->query->get('token', '');
/** @var \Leevel\Http\Request $request */
$request = $container->make('request');
$token = $request->query->get('token', '');

return new Permission($container->make(PermissionCache::class), $token);
});
Expand Down

0 comments on commit 3ee85d4

Please sign in to comment.