This commit is contained in:
2024-04-04 22:19:56 +02:00
parent 409a571010
commit 92800f5dd0
20 changed files with 18 additions and 43 deletions

View File

@@ -22,7 +22,6 @@ use Chill\MainBundle\DependencyInjection\CompilerPass\ShortMessageCompilerPass;
use Chill\MainBundle\DependencyInjection\CompilerPass\TimelineCompilerClass;
use Chill\MainBundle\DependencyInjection\CompilerPass\WidgetsCompilerPass;
use Chill\MainBundle\DependencyInjection\ConfigConsistencyCompilerPass;
use Chill\MainBundle\DependencyInjection\RoleProvidersCompilerPass;
use Chill\MainBundle\Notification\NotificationHandlerInterface;
use Chill\MainBundle\Routing\LocalMenuBuilderInterface;
use Chill\MainBundle\Search\SearchApiInterface;

View File

@@ -20,8 +20,7 @@ final readonly class DashboardApiController
{
public function __construct(
private NewsItemRepository $newsItemRepository,
) {
}
) {}
/**
* Get user dashboard config (not yet based on user id and still hardcoded for now).

View File

@@ -25,8 +25,7 @@ class NewsItemApiController
private readonly NewsItemRepository $newsItemRepository,
private readonly SerializerInterface $serializer,
private readonly PaginatorFactory $paginatorFactory
) {
}
) {}
/**
* Get list of news items filtered on start and end date.

View File

@@ -28,8 +28,7 @@ final readonly class NewsItemHistoryController
private readonly PaginatorFactory $paginatorFactory,
private readonly FilterOrderHelperFactoryInterface $filterOrderHelperFactory,
private readonly Environment $environment,
) {
}
) {}
/**
* @Route("/{_locale}/news-items/history", name="chill_main_news_items_history")

View File

@@ -17,9 +17,7 @@ use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
class AdminNewsMenuBuilder implements LocalMenuBuilderInterface
{
public function __construct(private readonly AuthorizationCheckerInterface $authorizationChecker)
{
}
public function __construct(private readonly AuthorizationCheckerInterface $authorizationChecker) {}
public function buildMenu($menuId, MenuItem $menu, array $parameters)
{

View File

@@ -13,7 +13,6 @@ namespace Chill\MainBundle\Security;
class RoleProvider
{
/**
* an array where keys are the role, and value is the title
* for the given role.
@@ -27,9 +26,7 @@ class RoleProvider
* @var iterable<ProvideRoleInterface>
*/
private iterable $providers
)
{
}
) {}
public function getRoles(): array
{