Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
admin_toolbar
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
admin_toolbar
Merge requests
!126
resolve unsafe usage of new static() warnings
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
resolve unsafe usage of new static() warnings
issue/admin_toolbar-3514075:3514075-unsafe-usage-of
into
3.x
Overview
0
Commits
2
Pipelines
5
Changes
4
Merged
Ben Stallings
requested to merge
issue/admin_toolbar-3514075:3514075-unsafe-usage-of
into
3.x
1 month ago
Overview
0
Commits
2
Pipelines
5
Changes
4
Expand
Closes
#3514075
0
0
Merge request reports
Compare
3.x
version 3
09834264
1 month ago
version 2
bc00c94a
1 month ago
version 1
83582297
1 month ago
3.x (base)
and
latest version
latest version
66fd1871
2 commits,
1 month ago
version 3
09834264
2 commits,
1 month ago
version 2
bc00c94a
2 commits,
1 month ago
version 1
83582297
1 commit,
1 month ago
4 files
+
26
−
142
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
admin_toolbar_search/src/Controller/AdminToolbarSearchController.php
+
3
−
14
Options
@@ -3,7 +3,6 @@
namespace
Drupal\admin_toolbar_search\Controller
;
use
Drupal\Core\Controller\ControllerBase
;
use
Drupal\admin_toolbar_search
\SearchLinks
;
use
Symfony\Component\DependencyInjection\ContainerInterface
;
use
Symfony\Component\HttpFoundation\JsonResponse
;
@@ -21,23 +20,13 @@ class AdminToolbarSearchController extends ControllerBase {
*/
protected
$links
;
/**
* Constructs an AdminToolbarSearchController object.
*
* @param \Drupal\admin_toolbar_search\SearchLinks $links
* The search links service.
*/
public
function
__construct
(
SearchLinks
$links
)
{
$this
->
links
=
$links
;
}
/**
* {@inheritdoc}
*/
public
static
function
create
(
ContainerInterface
$container
)
{
return
new
static
(
$container
->
get
(
'admin_toolbar_search.search_links'
)
)
;
$instance
=
parent
::
create
(
$container
);
$instance
->
links
=
$container
->
get
(
'admin_toolbar_search.search_links'
)
;
return
$instance
;
}
/**
Loading