Skip to content

Commit 4c92ca8

Browse files
authored
IBX-9060: Revamp notifications (#1529)
1 parent 6e9524c commit 4c92ca8

File tree

53 files changed

+3163
-386
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+3163
-386
lines changed

phpstan-baseline-7.4.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,6 @@ parameters:
110110
count: 1
111111
path: src/lib/Form/EventListener/AddLanguageFieldBasedOnContentListener.php
112112

113-
-
114-
message: "#^Parameter \\#2 \\$pieces of function implode expects array, array\\|null given\\.$#"
115-
count: 2
116-
path: src/lib/Form/Factory/FormFactory.php
117-
118113
-
119114
message: "#^Parameter \\#1 \\$input of function array_filter expects array, iterable\\<Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Language\\> given\\.$#"
120115
count: 1

phpstan-baseline.neon

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -726,12 +726,6 @@ parameters:
726726
count: 1
727727
path: src/bundle/Controller/LocationController.php
728728

729-
-
730-
message: '#^Parameter \#1 \$content of class Symfony\\Component\\HttpFoundation\\Response constructor expects string\|null, string\|false given\.$#'
731-
identifier: argument.type
732-
count: 1
733-
path: src/bundle/Controller/NotificationController.php
734-
735729
-
736730
message: '#^Argument of an invalid type array\<Ibexa\\Contracts\\Core\\Repository\\Values\\ObjectState\\ObjectState\>\|null supplied for foreach, only iterables are supported\.$#'
737731
identifier: foreach.nonIterable
@@ -7236,12 +7230,6 @@ parameters:
72367230
count: 1
72377231
path: src/lib/Form/Factory/FormFactory.php
72387232

7239-
-
7240-
message: '#^Cannot access property \$id on Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Section\|null\.$#'
7241-
identifier: property.nonObject
7242-
count: 2
7243-
path: src/lib/Form/Factory/FormFactory.php
7244-
72457233
-
72467234
message: '#^Cannot access property \$id on Ibexa\\Contracts\\Core\\Repository\\Values\\User\\Role\|null\.$#'
72477235
identifier: property.nonObject
@@ -7284,18 +7272,6 @@ parameters:
72847272
count: 2
72857273
path: src/lib/Form/Factory/FormFactory.php
72867274

7287-
-
7288-
message: '#^Cannot call method getSection\(\) on Ibexa\\AdminUi\\Form\\Data\\Section\\SectionDeleteData\|null\.$#'
7289-
identifier: method.nonObject
7290-
count: 1
7291-
path: src/lib/Form/Factory/FormFactory.php
7292-
7293-
-
7294-
message: '#^Cannot call method getSection\(\) on Ibexa\\AdminUi\\Form\\Data\\Section\\SectionUpdateData\|null\.$#'
7295-
identifier: method.nonObject
7296-
count: 1
7297-
path: src/lib/Form/Factory/FormFactory.php
7298-
72997275
-
73007276
message: '#^Method Ibexa\\AdminUi\\Form\\Factory\\FormFactory\:\:addCustomUrl\(\) return type with generic interface Symfony\\Component\\Form\\FormInterface does not specify its types\: TData$#'
73017277
identifier: missingType.generics
@@ -7668,12 +7644,6 @@ parameters:
76687644
count: 1
76697645
path: src/lib/Form/Factory/FormFactory.php
76707646

7671-
-
7672-
message: '#^Parameter \#1 \$name of method Symfony\\Component\\Form\\FormFactoryInterface\:\:createNamed\(\) expects string, string\|null given\.$#'
7673-
identifier: argument.type
7674-
count: 42
7675-
path: src/lib/Form/Factory/FormFactory.php
7676-
76777647
-
76787648
message: '#^Property Ibexa\\AdminUi\\Form\\Factory\\FormFactory\:\:\$translator is never read, only written\.$#'
76797649
identifier: property.onlyWritten
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
3+
/**
4+
* @copyright Copyright (C) Ibexa AS. All rights reserved.
5+
* @license For full copyright and license information view LICENSE file distributed with this source code.
6+
*/
7+
declare(strict_types=1);
8+
9+
namespace Ibexa\Bundle\AdminUi\Controller;
10+
11+
use Ibexa\Contracts\AdminUi\Controller\Controller;
12+
use Symfony\Component\HttpFoundation\Request;
13+
use Symfony\Component\HttpFoundation\Response;
14+
15+
final class AllNotificationsController extends Controller
16+
{
17+
public function renderAllNotificationsPageAction(Request $request, int $page): Response
18+
{
19+
return $this->forward(
20+
NotificationController::class . '::renderNotificationsPageAction',
21+
[
22+
'page' => $page,
23+
'template' => '@ibexadesign/account/notifications/list_all.html.twig',
24+
'render_all' => true,
25+
]
26+
);
27+
}
28+
}

0 commit comments

Comments
 (0)