Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
doPreload example
throw
new
\
ReflectionException
(
$m
)
;
}
}
)
;
$prev
=
[
]
;
try
{
while
(
$prev
!==
$classes
)
{
$prev
=
$classes
;
foreach
(
$classes
as
$c
)
{
if
(
!
isset
(
$preloaded
[
$c
]
)
)
{
self::
doPreload
(
$c
,
$preloaded
)
;
}
}
$classes
=
array_merge
(
get_declared_classes
(
)
,
get_declared_interfaces
(
)
,
get_declared_traits
(
)
)
;
}
}
finally
{
restore_error_handler
(
)
;
}
return
$preloaded
;
}
throw
new
\
ReflectionException
(
$m
)
;
}
}
)
;
$prev
=
[
]
;
try
{
while
(
$prev
!==
$classes
)
{
$prev
=
$classes
;
foreach
(
$classes
as
$c
)
{
if
(
!
isset
(
$preloaded
[
$c
]
)
)
{
self::
doPreload
(
$c
,
$preloaded
)
;
}
}
$classes
=
array_merge
(
get_declared_classes
(
)
,
get_declared_interfaces
(
)
,
get_declared_traits
(
)
)
;
}
}
finally
{
restore_error_handler
(
)
;
}
return
$preloaded
;
}