Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rename_admin_paths
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
rename_admin_paths
Commits
bf21c1a4
Commit
bf21c1a4
authored
2 weeks ago
by
Rakesh Kumar Regar
Committed by
Patrick Kenny
2 weeks ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3520457
by ptmkenny, abdulaziz zaid: PHP7: ParseError on module enable
parent
696feddd
No related branches found
No related tags found
1 merge request
!29
Issue #3520457 :PHP ParseError on module enable: Unexpected ')'.
Pipeline
#487878
passed with warnings
2 weeks ago
Stage: build
Stage: validate
Stage: test
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+2
-0
2 additions, 0 deletions
.gitlab-ci.yml
src/EventSubscriber/RenameAdminPathsEventSubscriber.php
+2
-2
2 additions, 2 deletions
src/EventSubscriber/RenameAdminPathsEventSubscriber.php
src/Form/RenameAdminPathsSettingsForm.php
+1
-1
1 addition, 1 deletion
src/Form/RenameAdminPathsSettingsForm.php
with
5 additions
and
3 deletions
.gitlab-ci.yml
+
2
−
0
View file @
bf21c1a4
...
...
@@ -25,3 +25,5 @@ include:
################
variables
:
_CSPELL_WORDS
:
'
Acolad,Apard,Développements,Raphaël,slootjes'
OPT_IN_TEST_CURRENT
:
'
0'
OPT_IN_TEST_PREVIOUS_MAJOR
:
'
1'
This diff is collapsed.
Click to expand it.
src/EventSubscriber/RenameAdminPathsEventSubscriber.php
+
2
−
2
View file @
bf21c1a4
...
...
@@ -84,7 +84,7 @@ class RenameAdminPathsEventSubscriber implements EventSubscriberInterface {
private
function
alterRouteCollection
(
RouteCollection
$routeCollection
,
string
$from
,
string
$to
,
string
$to
):
void
{
foreach
(
$routeCollection
as
$route
)
{
$this
->
replaceRoutePath
(
$route
,
$from
,
$to
);
...
...
@@ -104,7 +104,7 @@ class RenameAdminPathsEventSubscriber implements EventSubscriberInterface {
private
function
replaceRoutePath
(
Route
$route
,
string
$from
,
string
$to
,
string
$to
):
void
{
if
(
$this
->
matchRouteByPath
(
$route
,
$from
))
{
$route
->
setPath
(
...
...
This diff is collapsed.
Click to expand it.
src/Form/RenameAdminPathsSettingsForm.php
+
1
−
1
View file @
bf21c1a4
...
...
@@ -61,7 +61,7 @@ class RenameAdminPathsSettingsForm extends ConfigFormBase {
public
function
__construct
(
Config
$config
,
RouteBuilderInterface
$routeBuilder
,
TranslationInterface
$stringTranslation
,
TranslationInterface
$stringTranslation
)
{
$this
->
config
=
$config
;
$this
->
routeBuilder
=
$routeBuilder
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment