Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
fix: modules.config.php
Browse files Browse the repository at this point in the history
  • Loading branch information
wadedvsa committed Jan 22, 2024
1 parent b984fc6 commit 3c56fb0
Showing 1 changed file with 8 additions and 41 deletions.
49 changes: 8 additions & 41 deletions module/Olcs/config/module.config.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php

use Laminas\Router\Http\Segment;
use Laminas\Router\Http\HttpRouterFactory;
use Laminas\Mvc\Router\Http\Segment;
use Olcs\Auth\Adapter\CommandAdapter;
use Olcs\Auth\Adapter\CommandAdapterFactory;
use Olcs\Auth\Adapter\SelfserveCommandAdapter;
Expand All @@ -16,7 +15,6 @@
use Olcs\Controller\Factory\CorrespondenceControllerFactory;
use Olcs\Controller\Factory\Ebsr\UploadsControllerFactory;
use Olcs\Controller\Factory\IndexControllerFactory;
use Olcs\Controller\Factory\MessagesControllerFactory;
use Olcs\Controller\Factory\MyDetailsControllerFactory;
use Olcs\Controller\IndexController;
use Olcs\Controller\Licence\Vehicle\ListVehicleController;
Expand All @@ -43,8 +41,6 @@
use Olcs\Form\Element\SearchOrderFieldset;
use Olcs\Form\Element\SearchOrderFieldsetFactory;
use Olcs\FormService\Form\Lva as LvaFormService;
use Olcs\Logging\Log\Processor\CorrelationId;
use Olcs\Logging\Log\Processor\CorrelationIdFactory;
use Olcs\Service\Cookie as CookieService;
use Olcs\Service\Processing as ProcessingService;
use Olcs\Service\Qa as QaService;
Expand Down Expand Up @@ -438,28 +434,6 @@
]
]
],
'messages' => [
'type' => Segment::class,
'options' => [
'route' => '/messages[/]',
'defaults' => [
'controller' => Olcs\Controller\MessagesController::class,
'action' => 'index',
],
],
'may_terminate' => true,
'child_routes' => [
'view' => [
'type' => Segment::class,
'options' => [
'route' => ':conversationId[/]',
'defaults' => [
'action' => 'view',
],
],
],
],
],
'create_variation' => [
'type' => 'segment',
'options' => [
Expand Down Expand Up @@ -545,7 +519,7 @@
]
],
'govuk-account' => [
'type' => \Laminas\Router\Http\Literal::class,
'type' => \Laminas\Mvc\Router\Http\Literal::class,
'options' => [
'route' => '/govuk-account',
'defaults' => [
Expand All @@ -555,7 +529,7 @@
'may_terminate' => false,
'child_routes' => [
'process' => [
'type' => \Laminas\Router\Http\Literal::class,
'type' => \Laminas\Mvc\Router\Http\Literal::class,
'options' => [
'route' => '/process',
'defaults' => [
Expand All @@ -566,7 +540,7 @@
],
],
'verify' => [
'type' => \Laminas\Router\Http\Literal::class,
'type' => \Laminas\Mvc\Router\Http\Literal::class,
'options' => [
'route' => '/verify',
'defaults' => [
Expand Down Expand Up @@ -1220,7 +1194,7 @@
'LvaDirectorChange/People' => \Olcs\Controller\Lva\DirectorChange\PeopleController::class,
'LvaDirectorChange/FinancialHistory' => Olcs\Controller\Lva\DirectorChange\FinancialHistoryController::class,
'LvaDirectorChange/LicenceHistory' => \Olcs\Controller\Lva\DirectorChange\LicenceHistoryController::class,
'LvaDirectorChange/ConvictionsPenalties' => \Olcs\Controller\Lva\DirectorChange\ConvictionsPenaltiesController::class,
'LvaDirectorChange/ConvictionsPenalties' => \Olcs\Controller\Lva\DirectorChange\ConvictionsPenaltiesControllerFactory::class,

Check failure on line 1197 in module/Olcs/config/module.config.php

View workflow job for this annotation

GitHub Actions / static-analysis / PHPStan - 7.4

Class Olcs\Controller\Lva\DirectorChange\ConvictionsPenaltiesControllerFactory not found.

Check failure on line 1197 in module/Olcs/config/module.config.php

View workflow job for this annotation

GitHub Actions / static-analysis / Psalm - 7.4

UndefinedClass

module/Olcs/config/module.config.php:1197:57: UndefinedClass: Class, interface or enum named Olcs\Controller\Lva\DirectorChange\ConvictionsPenaltiesControllerFactory does not exist (see https://psalm.dev/019)
'LvaTransportManager/CheckAnswers' => \Olcs\Controller\Lva\TransportManager\CheckAnswersController::class,
'LvaTransportManager/Confirmation' => \Olcs\Controller\Lva\TransportManager\ConfirmationController::class,
'LvaTransportManager/OperatorDeclaration' => \Olcs\Controller\Lva\TransportManager\OperatorDeclarationController::class,
Expand Down Expand Up @@ -1309,8 +1283,6 @@

Olcs\Controller\GdsVerifyController::class => \Olcs\Controller\Factory\GdsVerifyControllerFactory::class,

Olcs\Controller\MessagesController::class => MessagesControllerFactory::class,

// License - Surrender
Olcs\Controller\Licence\Surrender\ReviewContactDetailsController::class => Olcs\Controller\Licence\Surrender\ReviewContactDetailsControllerFactory::class,
Olcs\Controller\Licence\Surrender\AddressDetailsController::class =>
Expand All @@ -1335,6 +1307,7 @@
\Olcs\Controller\Licence\Vehicle\TransferVehicleConfirmationController::class => \Olcs\Controller\Licence\Vehicle\TransferVehicleConfirmationControllerFactory::class,
\Olcs\Controller\Licence\Vehicle\Reprint\ReprintLicenceVehicleDiscController::class => \Olcs\Controller\Licence\Vehicle\Reprint\ReprintLicenceVehicleDiscControllerFactory::class,
\Olcs\Controller\Licence\Vehicle\Reprint\ReprintLicenceVehicleDiscConfirmationController::class => \Olcs\Controller\Licence\Vehicle\Reprint\ReprintLicenceVehicleDiscConfirmationControllerFactory::class,
Olcs\Controller\MessagesController::class => Olcs\Controller\Factory\MessagesControllerFactory::class,

Check failure on line 1310 in module/Olcs/config/module.config.php

View workflow job for this annotation

GitHub Actions / static-analysis / Psalm - 7.4

MissingDependency

module/Olcs/config/module.config.php:1310:58: MissingDependency: Olcs\Controller\Factory\MessagesControllerFactory depends on class or interface laminas\servicemanager\factory\factoryinterface that does not exist (see https://psalm.dev/157)
PromptController::class => \Olcs\Controller\PromptControllerFactory::class,
// Process Signature from GOV.UK Account
\Olcs\Controller\SignatureVerificationController::class => \Olcs\Controller\SignatureVerificationControllerFactory::class,
Expand Down Expand Up @@ -1450,14 +1423,8 @@
LicenceTransportManagerAdapter::class => LicenceTransportManagerAdapterFactory::class,
VariationTransportManagerAdapter::class => VariationTransportManagerAdapterFactory::class,
VariationPeopleAdapter::class => VariationPeopleAdapterFactory::class,
\Olcs\Logging\Log\Processor\CorrelationId::class => \Olcs\Logging\Log\Processor\CorrelationIdFactory::class,
]
),
'log_processors' => [
'factories' => [
CorrelationId::class => CorrelationIdFactory::class,
],
],
'search' => [
'invokables' => [
'operator' => Common\Data\Object\Search\LicenceSelfserve::class, // Selfserve licence search
Expand Down Expand Up @@ -1610,12 +1577,12 @@
'lva-variation-overview-submission' => LvaFormService\VariationOverviewSubmissionFactory::class,
]
],
'lmc_rbac' => [
'zfc_rbac' => [
'assertion_map' => [
'selfserve-ebsr-list' => \Olcs\Assertion\Ebsr\EbsrList::class,
],
'guards' => [
'LmcRbacMvc\Guard\RoutePermissionsGuard' => [
'ZfcRbac\Guard\RoutePermissionsGuard' => [
// Dashboard Page
'dashboard' => ['selfserve-nav-dashboard'],

Expand Down

0 comments on commit 3c56fb0

Please sign in to comment.