for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace App\Component;
use Nymfonya\Component\Config;
use Nymfonya\Component\Container;
use App\Model\Users;
class Auth
{
protected $userModel;
/**
* instanciate
*/
public function __construct(Container $container)
$this->userModel = new Users(
$container->getService(Config::class)
);
}
* auth from login password and return user as array
*
* @param string $login
* @param string $password
* @return array
public function auth(string $login, string $password): array
return $this->userModel->auth($login, $password);