2017 © Pedro Peláez
 

symfony-bundle backend-tools-settings-bundle

image

modera/backend-tools-settings-bundle

  • Friday, March 16, 2018
  • by modera
  • Repository
  • 5 Watchers
  • 0 Stars
  • 3,096 Installations
  • JavaScript
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 24 Versions
  • 0 % Grown

The README.md

ModeraBackendToolsSettingsBundle

Provides a unified way of exposing sections that would allow to configure your modules. This bundle contributes a section to "Backend / Tools" called "Settings"., (*1)

See Modera\BackendToolsSettingsBundle\ModeraBackendToolsSettingsBundle for a list of exposed extension points., (*2)

Installation

Step 1: Download the Bundle

``` bash composer require modera/backend-tools-settings-bundle:4.x-dev, (*3)


This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md) of the Composer documentation. ### Step 2: Enable the Bundle This bundle should be automatically enabled by [Flex](https://symfony.com/doc/current/setup/flex.html). In case you don't use Flex, you'll need to manually enable the bundle by adding the following line in the `config/bundles.php` file of your project: ``` php <?php // config/bundles.php return [ // ... Modera\BackendToolsSettingsBundle\ModeraBackendToolsSettingsBundle::class => ['all' => true], ];

How to contribute your own settings section

In order to just contribute a section ( an activity ) to Settings section you need to create a provider class which would return instances of Modera\BackendToolsSettingsBundle\Section\SectionInterface. This is an example how to contributor class could look like:, (*4)

``` php <?php, (*5)

namespace MyCompany\BlogBundle\Contributions;, (*6)

use Modera\BackendToolsSettingsBundle\Section\StandardSection; use Modera\MjrIntegrationBundle\Model\FontAwesome; use Sli\ExpanderBundle\Ext\ContributorInterface;, (*7)

class SettingsSectionsProvider implements ContributorInterface { /** * @inheritDoc */ public function getItems() { return array( new StandardSection( 'blog', 'Blog', 'Modera.backend.configutils.runtime.SettingsListActivity', FontAwesome::resolve('cog', 'fas'), array('category' => 'blog') ) ); } }, (*8)


Once you have created a class you need to register it in service container with tag `modera_backend_tools_settings.contributions.sections_provider`. ``` xml <services> <service id="mycompany_blog.contributions.settings_sections_provider" class="MyCompany\BlogBundle\Contributions\SettingsSectionsProvider"> <tag name="modera_backend_tools_settings.contributions.sections_provider" /> </service> </services>

Now if you go to "Backend / Tools / Settings" you should see a section there with name "Blog", it url it will be named as "blog", icon will be "gear" ( see FontAwesome library ) and Modera.backend.dcab.runtime.SettingsListActivity javascript activity will be used to create its UI., (*9)

Licensing

This bundle is under the MIT license. See the complete license in the bundle: Resources/meta/LICENSE, (*10)

The Versions

16/03 2018
18/01 2018

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

18/01 2018

dev-crub_pagination_fetch_fix

dev-crub_pagination_fetch_fix

  Sources   Download

MIT

The Requires

 

The Development Requires

13/09 2017

dev-direct-bundle-csrf

dev-direct-bundle-csrf

  Sources   Download

MIT

The Requires

 

The Development Requires

13/09 2017

v2.56.0

2.56.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

05/09 2016

2.x-dev

2.9999999.9999999.9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

05/09 2016

dev-MPFE-963

dev-MPFE-963

  Sources   Download

MIT

The Requires

 

The Development Requires

05/09 2016

dev-MPFE-975

dev-MPFE-975

  Sources   Download

MIT

The Requires

 

The Development Requires

05/09 2016

dev-MPFE-977

dev-MPFE-977

  Sources   Download

MIT

The Requires

 

The Development Requires

05/09 2016

v2.52.0

2.52.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

05/09 2016

v2.52.1

2.52.1.0

  Sources   Download

MIT

The Requires

 

The Development Requires

05/09 2016

v2.52.2

2.52.2.0

  Sources   Download

MIT

The Requires

 

The Development Requires

05/09 2016

v2.53.0

2.53.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

05/09 2016

v2.54.0

2.54.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

05/09 2016

dev-MPFE-1005

dev-MPFE-1005

  Sources   Download

MIT

The Requires

 

The Development Requires

05/09 2016

dev-MPFE-1007

dev-MPFE-1007

  Sources   Download

MIT

The Requires

 

The Development Requires

05/09 2016

dev-MPFE-1014

dev-MPFE-1014

  Sources   Download

MIT

The Requires

 

The Development Requires

05/09 2016

dev-MPFE-1017

dev-MPFE-1017

  Sources   Download

MIT

The Requires

 

The Development Requires

05/09 2016

v2.55.0

2.55.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

05/09 2016

dev-MPFE-1014-2

dev-MPFE-1014-2

  Sources   Download

MIT

The Requires

 

The Development Requires

05/09 2016

dev-MPFE-1029

dev-MPFE-1029

  Sources   Download

MIT

The Requires

 

The Development Requires

22/07 2016

v2.0.50

2.0.50.0

  Sources   Download

MIT

The Requires

 

The Development Requires

22/07 2016

v2.51.0

2.51.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

22/07 2016

v2.51.1

2.51.1.0

  Sources   Download

MIT

The Requires

 

The Development Requires