Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 1.66 KB

ApplicationExtension.md

File metadata and controls

58 lines (42 loc) · 1.66 KB

Meritoo Common Bundle

Common & useful classes, resources, extensions. Based on Symfony framework.

ApplicationExtension

Located here: Meritoo\CommonBundle\Twig\ApplicationExtension. It's Twig extension related to the ApplicationService service. Allows to use functionality provided by the ApplicationService service in Twig templates.

Functions

meritoo_common_application_descriptor()

Returns descriptor of application. Exactly as Meritoo\CommonBundle\Service\ApplicationService::getDescriptor() method.

Example below.

Name of application may be defined in config/packages/meritoo_common.yaml configuration file:

meritoo_common:
    application:
        name: My App

Let's display name of application:

<title>{{ meritoo_common_application_descriptor().name }}</title>

Result:

<title>My App</title>

More

  1. Configuration
  2. Dependency Injection Extension
  3. Descriptor of application
  4. Descriptor of bundle
  5. Descriptors of bundles
  6. Services:
  7. Tests
  8. Translations
  9. Twig extensions:

‹ Back to Readme