2017 © Pedro Peláez
 

symfony-bundle country-context-bundle

phlexible country context bundle

image

phlexible/country-context-bundle

phlexible country context bundle

  • Monday, July 30, 2018
  • by temp
  • Repository
  • 1 Watchers
  • 0 Stars
  • 123 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 11 % Grown

The README.md

PhlexibleCountryContextBundle

The PhlexibleCountryContextBundle adds support for country-based content in phlexible., (*1)

Installation

  1. Download PhlexibleCountryContextBundle using composer
  2. Enable the Bundle
  3. Configure the PhlexibleCountryContextBundle
  4. Update your database schema
  5. Clear the symfony cache

Step 1: Download PhlexibleCountryContextBundle using composer

Add PhlexibleCountryContextBundle by running the command:, (*2)

``` bash $ php composer.phar require phlexible/country-context-bundle "~1.0.0", (*3)


Composer will install the bundle to your project's `vendor/phlexible` directory. ### Step 2: Enable the bundle Enable the bundle in the kernel: ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Phlexible\Bundle\CountryContextBundle\PhlexibleCountryContextBundle(), ); }

Step 3: Configure the PhlexibleCountryContextBundle

Now that the bundle is enabled, you need to configure the PhlexibleCountryContextBundle. Add the following configuration to your config.yaml file., (*4)

``` yaml, (*5)

app/config/config.yaml

phlexible_country_context: countries: gb: continent: eu country: gb languages: en: {locale: en, expose: true}, (*6)

phlexible_tree: mediator: element_viewable_voter: "phlexible_country_context.element_mediator.country_aware_viewable_voter" router: url_generator_service: "phlexible_country_context.router.country_aware_url_generator" request_matcher_service: "phlexible_country_context.router.country_aware_request_matcher", (*7)


### Step 4: Update your database schema Now that the bundle is set up, the last thing you need to do is update your database schema because the country context bundle includes entities that need to be installed in your database. For ORM run the following command. ``` bash $ php app/console doctrine:schema:update --force

Step 5: Clear the symfony cache

If you access your phlexible application with environment prod, clear the cache:, (*8)

bash $ php app/console cache:clear --env=prod, (*9)

The Versions

17/11 2016

1.1.2

1.1.2.0

phlexible country context bundle

  Sources   Download

proprietary

The Requires

 

The Development Requires

content country

10/10 2016

1.0.14

1.0.14.0

phlexible country context bundle

  Sources   Download

proprietary

The Requires

 

The Development Requires

content country

10/10 2016

1.0.13

1.0.13.0

phlexible country context bundle

  Sources   Download

proprietary

The Requires

 

The Development Requires

content country

07/10 2016

1.0.12

1.0.12.0

phlexible country context bundle

  Sources   Download

proprietary

The Requires

 

The Development Requires

content country

30/09 2016

1.0.10

1.0.10.0

phlexible country context bundle

  Sources   Download

proprietary

The Requires

 

The Development Requires

content country