Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
registerEvents example
#[Package('core')]
abstract
class
Bundle
extends
SymfonyBundle
{
public
function
build
(
ContainerBuilder
$container
)
: void
{
parent::
build
(
$container
)
;
$this
->
registerContainerFile
(
$container
)
;
$this
->
registerMigrationPath
(
$container
)
;
$this
->
registerFilesystem
(
$container
, 'private'
)
;
$this
->
registerFilesystem
(
$container
, 'public'
)
;
$this
->
registerEvents
(
$container
)
;
}
public
function
getMigrationNamespace
(
)
: string
{
return
$this
->
getNamespace
(
)
. '\Migration';
}
public
function
getMigrationPath
(
)
: string
{
$migrationSuffix
=
str_replace
(
$this
->
getNamespace
(
)
,