Skip to content
Extra features for eZ Platform (v1.x compatible with eZ Publish 5.4)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
DependencyInjection Set email authentication disabled by default Jul 13, 2018
EventListener Fix wrong exception message Sep 1, 2017
Exception #32: Adapted ViewTemplateListener to use the new ViewParameterProvide… Jun 12, 2017
Resources Fixed typo Apr 26, 2019
Security Implemented user authentication by email Jul 13, 2018
Templating/Twig
Tests Added tests for authentication by email feature Jul 13, 2018
View Fix #37: Add expression support in configured view parameters Aug 31, 2017
.gitignore Removed .idea from gitignore, as suggested by SensioLabsInsight (best… May 11, 2016
.travis.yml #32: Removed support of eZ 5.4 Jun 12, 2017
EzCoreExtraBundle.php Implemented user authentication by email Jul 13, 2018
LICENSE Added LICENSE file May 11, 2016
README.md Added doc for email authentication Jul 13, 2018
UPGRADE-2.0.md Update UPGRADE-2.0.md Jun 16, 2017
UPGRADE-3.0.md Fixed UPGRADE-3.0.md Aug 28, 2017
composer.json Remove usage of symfony/symfony for Symfony 4 compatibility Jun 14, 2019
phpunit.xml Added tests for ConfigResolverParameterPass Apr 21, 2013

README.md

EzCoreExtraBundle

SensioLabsInsight Build Status

Adds extra features to eZ Platform.

Compatibility

  • master branch / v2.x is only compatible with eZ Platform
  • 1.0 branch is compatible with both eZ Platform and eZ Publish 5.4/2014.11.

Features

  • Configurable template variable injection

    Lets you configure variables to inject within your view template configuration. This avoids you to create custom controllers when you need to add a few simple variables to your view.

    ezpublish:
        system:
            my_siteaccess:
                location_view:
                    full:
                        article_test:
                            template: "AcmeTestBundle:full:article_test.html.twig"
                            params:
                                # Following keys will be injected as variables into configured template
                                osTypes: [osx, linux, losedows]
                                secret: %secret%
                                # Parameters resolved by config resolver
                                # See https://doc.ez.no/display/EZP/Dynamic+settings+injection
                                default_ttl: $content.default_ttl$
                                # Using a parameter provider, for more complex usecases.
                                my_provider: {"provider": "my_param_provider"}
    
                            match:
                                Id\Location: 144
  • Context aware Twig global variables

    Lets you define Twig global variables that will be available only in the current SiteAccess.

    ez_core_extra:
        system:
            my_siteaccess:
                twig_globals:
                    my_variable: foo
                    another_variable: 123
                    something_else: [bar, true, false]
  • Simplified authorization checks

    Simplifies calls to $this->isGranted() from inside controllers and is_granted() from within templates when checking against eZ inner permission system (module/function/valueObject).

  • Authentication by e-mail

    By activating enable_email_authentication flag, it will be possible for users to authenticate using their e-mail, in addition to their username.

    ez_core_extra:
        system:
            my_siteaccess:
                enable_email_authentication: true

Requirements

EzCoreExtraBundle currently works eZ Platform v1 and v2 (kernel v6 and v7).

If you're using eZ publish 5.4/2014.11 or Netgen variant, look at 1.1 branch and/or v1.x releases.

Installation

This bundle is available on Packagist. You can install it using Composer.

composer require lolautruche/ez-core-extra-bundle

Then add it to your application:

EzCoreExtraBundle MUST be instanciated AFTER eZ bundles.

// ezpublish/EzPublishKernel.php

public function registerBundles()
{
    $bundles = [
        // ...
        new Lolautruche\EzCoreExtraBundle\EzCoreExtraBundle(),
        // ...
    ];
}

Documentation

See Resources/doc/

You can’t perform that action at this time.