Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
CheckCircularReferencesPass example
elseif
(
'Container' ===
$baseClass
)
{
$this
->baseClass = Container::
class
;
}
else
{
$this
->baseClass =
$baseClass
;
}
$this
->
initializeMethodNamesMap
(
'Container' ===
$baseClass
? Container::
class
D
$baseClass
)
;
if
(
$this
->
getProxyDumper
(
)
instanceof NullDumper
)
{
(
new
AnalyzeServiceReferencesPass
(
true, false
)
)
->
process
(
$this
->container
)
;
try
{
(
new
CheckCircularReferencesPass
(
)
)
->
process
(
$this
->container
)
;
}
catch
(
ServiceCircularReferenceException
$e
)
{
$path
=
$e
->
getPath
(
)
;
end
(
$path
)
;
$path
[
key
(
$path
)
]
.= '". Try running "composer require symfony/proxy-manager-bridge';
throw
new
ServiceCircularReferenceException
(
$e
->
getServiceId
(
)
,
$path
)
;
}
}
$this
->
analyzeReferences
(
)
;
$this
->docStar =
$options
[
'debug'
]
? '*' : '';