Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
DocParser example
$eventClasses
[
(string)
$constant
->
getValue
(
)
]
=
$annotation
->
getEventClass
(
)
;
}
}
}
return
$eventClasses
;
}
private
function
getDocParser
(
)
: DocParser
{
$docParser
=
new
DocParser
(
)
;
$docParser
->
setImports
(
[
'event' => Event::
class
,
]
)
;
$docParser
->
setIgnoreNotImportedAnnotations
(
true
)
;
return
$docParser
;
}
}