services:
    _defaults:
        autowire: true
        autoconfigure: true
        bind:
            $installed: '%env(ZIKULA_INSTALLED)%'
            $projectDir: '%kernel.project_dir%'
            $locale: '%locale%'
            $databaseUrl: '%env(DATABASE_URL)%'
            $mailerDsn: '%env(MAILER_DSN)%'
            $environment: '%env(APP_ENV)%'

    _instanceof:
        Zikula\Component\Wizard\StageInterface:
            tags: ['core_installer_bundle.stage']

    Zikula\Bundle\CoreInstallerBundle\:
        resource: '../../*'
        exclude: '../../{bootstrap.php,Event,Tests,vendor}'

    Zikula\Bundle\CoreInstallerBundle\Controller\:
        resource: '../../Controller/*'
        public: true

    Zikula\Component\Wizard\StageContainerInterface: '@Zikula\Bundle\CoreInstallerBundle\Container\StageContainer'

    Zikula\Bundle\CoreInstallerBundle\Container\StageContainer:
        arguments:
            $stages: !tagged_iterator core_installer_bundle.stage
