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

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 / 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).

Requirements

EzCoreExtraBundle currently works with eZ Publish 5.4/2014.11 (and should work with Netgen variant)
and eZ Platform (kernel version >=6.0).

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:

// 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.
  • Merge pull request #45 from emodric/voter_exceptions
    By web-flow, 1 year ago
  • Add tests for voter with exceptions
    By emodric, 1 year ago
  • Check for permissions resolver exceptions
    By emodric, 1 year ago
  • Merge pull request #44 from emodric/patch-2
    By web-flow, 1 year ago
  • Allow installing eZ kernel 7.0
    By web-flow, 1 year ago
  • Update README.md
    By web-flow, 1 year ago
  • Fix wrong exception message
    By lolautruche, 1 year ago
  • Merge pull request #42 from lolautruche/feat/expressionInjection
    By web-flow, 1 year ago
  • Fix #37: Add expression support in configured view parameters
    By lolautruche, 1 year ago
  • Merge pull request #41 from lolautruche/feat/autoconfigure
    By web-flow, 1 year ago
  • Added missing tests for ConfigurableView
    By lolautruche, 1 year ago
  • Set services private
    By lolautruche, 1 year ago
  • Improved documentation
    By lolautruche, 1 year ago
  • Fix #36: Enable autoconfigure for view parameter providers
    By lolautruche, 1 year ago
  • Fixed wrong usage of $this->innerView->getContent()
    By web-flow, 1 year ago
  • Fixed UPGRADE-3.0.md
    By lolautruche, 1 year ago
  • Fix #39: Configurable view don't have current content/location any more
    By lolautruche, 1 year ago
  • Update UPGRADE-2.0.md
    By web-flow, 2 years ago
  • Missed other use statements
    By lolautruche, 2 years ago
  • Removed unused use statements
    By lolautruche, 2 years ago
  • #32: Updated doc
    By lolautruche, 2 years ago
  • Merge pull request #34 from lolautruche/feat/removeDeprecatedViewParameterProviderInterface
    By web-flow, 2 years ago
  • #32: Removed support of eZ 5.4
    By lolautruche, 2 years ago
  • #32: Removed deprecated ViewParameterProviderInterface
    By lolautruche, 2 years ago
  • Removed obsolete DebugTemplateTest
    By lolautruche, 2 years ago
  • Merge branch '1.1'
    By lolautruche, 2 years ago
  • Merge pull request #33 from lolautruche/feat/optionsViewParameterProviders
    By web-flow, 2 years ago
  • Adapted .travis.yml
    By lolautruche, 2 years ago
  • #32: Added tests for ConfigurableView
    By lolautruche, 2 years ago
  • #32: Splitted tests for ViewTemplateListener
    By lolautruche, 2 years ago