entryPoint
класс от AuthenticationEntryPointInterface
$security->firewall('main')
->lazy(true)
->customAuthenticators([LoginAuthenticator::class])
->entryPoint(AuthenticationEntryPoint::class)
->logout()
->path('logout')
->target('login');
trait GameSearchStatus
{
public function fillGameSearch(ActiveQuery $query, array $params)
{
$gameSearch = $params['GameSearch'] ?? null;
if (is_array($gameSearch) && !isset($gameSearch['all'])) {
foreach ($gameSearch as $key => $value) {
if (!empty($value)) {
$query->where([
$key => $value,
]);
break;
}
}
}
}
}