Class Mapbender
Mapbender - The central Mapbender3 service. Provides metadata about available
elements, layers and templates.
Methods summary
public
|
#
__construct( Symfony\Component\DependencyInjection\ContainerInterface $container )
Mapbender constructor.
Iterate over all bundles and if is an MapbenderBundle, get list of elements,
layers and templates.
Parameters
- $container
Symfony\Component\DependencyInjection\ContainerInterface $container
|
public
array
|
#
getElements( )
Get list of all declared element classes.
Get list of all declared element classes.
Element classes need to be declared in each bundle's main class getElement
method.
Returns
array
|
public
array
|
#
getRepositoryManagers( )
Get list of all declared source factories.
Get list of all declared source factories.
Returns
array
|
public
array
|
#
getLayers( )
Get list of all declared layer classes.
Get list of all declared layer classes.
Layer classes need to be declared in each bundle's main class getLayers
method.
Returns
array
|
public
array
|
#
getTemplates( )
Get list of all declared template classes.
Get list of all declared template classes.
Template classes need to be declared in each bundle's main class getTemplates
method.
Returns
array
|
public
Mapbender\CoreBundle\Component\Application
|
#
getApplication( mixed $slug, mixed $urls )
Get the application for the given slug.
Get the application for the given slug.
Returns either application if it exists, null otherwise. If two applications
with the same slug exist, the database one will override the YAML one.
Returns
|
public
array
|
|
public
Mapbender\CoreBundle\Entity\Application
|
#
getApplicationEntity( mixed $slug )
Get application entity for given slug
Get application entity for given slug
Returns
|
public static
|
|