Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
mergePaths example
$transformed
->
setPath
(
$this
->
getPath
(
)
)
;
if
(
$relative
->
getQuery
(
)
)
{
$transformed
->
setQuery
(
$relative
->
getQuery
(
)
)
;
}
else
{
$transformed
->
setQuery
(
$this
->
getQuery
(
)
)
;
}
}
else
{
if
(
strpos
(
$relative
->
getPath
(
)
, '/'
)
=== 0
)
{
$transformed
->
setPath
(
$relative
->
getPath
(
)
)
;
}
else
{
$transformed
->
setPath
(
$this
->
mergePaths
(
$this
,
$relative
)
)
;
}
$transformed
->
setQuery
(
$relative
->
getQuery
(
)
)
;
}
$transformed
->
setAuthority
(
$this
->
getAuthority
(
)
)
;
}
$transformed
->
setScheme
(
$this
->
getScheme
(
)
)
;
$transformed
->
setFragment
(
$relative
->
getFragment
(
)
)
;