Developed with love by KnpLabs Hire us for your project!
48

EzCoreExtraBundle

by lolautruche

Extra features for eZ Platform (v1.x compatible with eZ Publish 5.4)

EzCoreExtraBundle

SensioLabsInsight
Build Status

Adds extra features to eZ Platform.

Compatibility

  • master branch is only compatible with eZ Platform v3
  • v2.x is only compatible with eZ Platform v1 and v2
  • 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).

Requirements

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

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

If you're using eZ Platform v1 or v2, look at 2.x branch and/or v2.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/

Copyright (c) 2016 Jérôme Vieilledent

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
  • Dynamic settings have been removed from eZ
    By emodric, 6 months ago
  • Merge branch '2.0'
    By emodric, 6 months ago
  • Use lowercase mikey179/vfsstream package name
    By emodric, 6 months ago
  • Use ezsystems/ezplatform-kernel package name
    By emodric, 6 months ago
  • Merge pull request #55 from emodric/patch-5
    By web-flow, 6 months ago
  • Typos
    By emodric, 6 months ago
  • Update upgrade docs for 3.0
    By emodric, 6 months ago
  • Remove obsolete docs
    By emodric, 6 months ago
  • Update readme
    By emodric, 6 months ago
  • Use lowercase name for mikey179/vfsstream
    By emodric, 6 months ago
  • Remove support for obsolete versions of Symfony in confguration
    By emodric, 6 months ago
  • Add branch alias for 3.x
    By emodric, 6 months ago
  • Remove obsolete service
    By emodric, 7 months ago
  • Replace @expectedException with calls to $this->expectException in tests
    By emodric, 7 months ago
  • Update Twig extension for Twig v3
    By emodric, 7 months ago
  • Update tests for PHPUnit 9
    By emodric, 7 months ago
  • Remove obsolete config from DI extension
    By emodric, 7 months ago
  • Remove obsolete versions of PHP and eZ kernel from Travis
    By emodric, 7 months ago
  • Remove logic allowing login with e-mail
    By emodric, 7 months ago
  • Bump PHPUnit to v9
    By emodric, 7 months ago
  • Update composer.json to only support eZ kernel v8
    By emodric, 7 months ago
  • Add minimum stability dev to allow installing eZ Kernel v8
    By emodric, 7 months ago
  • Add eZ Kernel v8 to Travis
    By emodric, 7 months ago
  • Update README to reflect we support eZ Platform v3
    By emodric, 7 months ago
  • Bump dependencies for eZ Platform 3 support
    By web-flow, 7 months ago
  • Fix unreachable parameter in ConfigurableView
    By lolautruche, 11 months ago
  • Merge pull request #54 from emodric/deprecations
    By web-flow, 1 year ago
  • Remove deprecated usage of TreeBuilder on Symfony 4
    By emodric, 1 year ago
  • Merge pull request #53 from emodric/patch-4
    By web-flow, 1 year ago
  • Remove usage of symfony/symfony for Symfony 4 compatibility
    By web-flow, 1 year ago