2017 © Pedro Peláez
 

symfony-bundle sexy-field-bundle

Symfony SexyFieldBundle

image

tardigrades/sexy-field-bundle

Symfony SexyFieldBundle

  • Tuesday, July 3, 2018
  • by dion.snoeijen
  • Repository
  • 2 Watchers
  • 0 Stars
  • 520 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 2 Versions
  • 21 % Grown

The README.md

Build Status, (*1)

SexyField Installation

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:, (*2)

$ composer require tardigrades/sexy-field-bundle "~1"

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation., (*3)

Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:, (*4)

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Tardigrades\Bundle\SexyFieldBundle(),
        );

        // ...
    }

    // ...
}

Step 3: Execute doctrine schema command to generate database structure

If you want, enable caching.

1: Add this to your config.yml, this will prevent doctrine migrations to remove the table that will be created in the next step., (*5)

doctrine:
  dbal:
    schema_filter: ~^(?!cache_items)~

2: Then run: bin/console sf:ensure-cache to create the caching table in the database, (*6)

3: And add this service to your services.yml . The second argument (true) is used to enable or disable caching. You can make a variable for this., (*7)

Tardigrades\SectionField\Service\DefaultCache:
    public: false
    arguments:
      - '@Symfony\Component\Cache\Adapter\TagAwareAdapter'
      - true

The Versions