Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
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
drupal
Merge requests
!9969
[
#3483996
] Replace service proxies with service closures
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
[
#3483996
] Replace service proxies with service closures
issue/drupal-3483996:3483996-replace-lazy-service
into
11.x
Overview
17
Commits
10
Pipelines
10
Changes
7
1 unresolved thread
Show all comments
Closed
Kim Pepper
requested to merge
issue/drupal-3483996:3483996-replace-lazy-service
into
11.x
7 months ago
Overview
17
Commits
10
Pipelines
10
Changes
7
1 unresolved thread
Show all comments
Expand
Closes
#3483996
0
0
Merge request reports
Compare
11.x
version 9
d9999de1
2 months ago
version 8
c05177be
2 months ago
version 7
34ae88df
3 months ago
version 6
65d26930
3 months ago
version 5
04e60f40
4 months ago
version 4
b3cb2a93
5 months ago
version 3
04e46936
5 months ago
version 2
e8b588f0
7 months ago
version 1
7fe6fc9e
7 months ago
11.x (base)
and
latest version
latest version
9694f272
10 commits,
1 month ago
version 9
d9999de1
10 commits,
2 months ago
version 8
c05177be
9 commits,
2 months ago
version 7
34ae88df
7 commits,
3 months ago
version 6
65d26930
6 commits,
3 months ago
version 5
04e60f40
5 commits,
4 months ago
version 4
b3cb2a93
4 commits,
5 months ago
version 3
04e46936
3 commits,
5 months ago
version 2
e8b588f0
2 commits,
7 months ago
version 1
7fe6fc9e
1 commit,
7 months ago
7 files
+
61
−
129
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
7
Search (e.g. *.vue) (Ctrl+P)
core/lib/Drupal/Core/ProxyClass/Cron.php deleted
100644 → 0
+
0
−
80
Options
<?php
// phpcs:ignoreFile
/**
* This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\Core\Cron' "core/lib/Drupal/Core".
*/
namespace
Drupal\Core\ProxyClass
{
/**
* Provides a proxy class for \Drupal\Core\Cron.
*
* @see \Drupal\Component\ProxyBuilder
*/
class
Cron
implements
\Drupal\Core\CronInterface
{
use
\Drupal\Core\DependencyInjection\DependencySerializationTrait
;
/**
* The id of the original proxied service.
*
* @var string
*/
protected
$drupalProxyOriginalServiceId
;
/**
* The real proxied service, after it was lazy loaded.
*
* @var \Drupal\Core\Cron
*/
protected
$service
;
/**
* The service container.
*
* @var \Symfony\Component\DependencyInjection\ContainerInterface
*/
protected
$container
;
/**
* Constructs a ProxyClass Drupal proxy object.
*
* @param \Symfony\Component\DependencyInjection\ContainerInterface $container
* The container.
* @param string $drupal_proxy_original_service_id
* The service ID of the original service.
*/
public
function
__construct
(
\Symfony\Component\DependencyInjection\ContainerInterface
$container
,
$drupal_proxy_original_service_id
)
{
$this
->
container
=
$container
;
$this
->
drupalProxyOriginalServiceId
=
$drupal_proxy_original_service_id
;
}
/**
* Lazy loads the real service from the container.
*
* @return object
* Returns the constructed real service.
*/
protected
function
lazyLoadItself
()
{
if
(
!
isset
(
$this
->
service
))
{
$this
->
service
=
$this
->
container
->
get
(
$this
->
drupalProxyOriginalServiceId
);
}
return
$this
->
service
;
}
/**
* {@inheritdoc}
*/
public
function
run
()
{
return
$this
->
lazyLoadItself
()
->
run
();
}
}
}
Loading