mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-15 00:56:59 +02:00
Removed useless package
This commit is contained in:
parent
73432e2928
commit
b0f63ffb25
4 changed files with 1 additions and 13 deletions
|
@ -179,17 +179,7 @@ class HomeController extends Controller
|
|||
}
|
||||
return $response->withHeader('Location', '/dashboard')->withStatus(302);
|
||||
}
|
||||
|
||||
public function avatar(Request $request, Response $response)
|
||||
{
|
||||
$avatar = new \LasseRafn\InitialAvatarGenerator\InitialAvatar();
|
||||
$stream = $avatar->name($_SESSION['auth_username'])->length(2)->fontSize(0.5)->size(96)->background('#206bc4')->color('#fff')->generate()->stream('png', 100);
|
||||
$psr17Factory = new \Nyholm\Psr7\Factory\Psr17Factory();
|
||||
$psrResponse = $psr17Factory->createResponse(200)->withBody($stream);
|
||||
|
||||
return $psrResponse;
|
||||
}
|
||||
|
||||
public function lang(Request $request, Response $response)
|
||||
{
|
||||
$data = $request->getQueryParams();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue