tardigrades/sexy-field-bundle

Symfony SexyFieldBundle

Installs: 2 323

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 5

Open Issues: 4

Type:symfony-bundle

dev-master 2021-03-13 14:52 UTC

README

Build Status

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:

$ 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.

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:

<?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.

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

2: Then run: bin/console sf:ensure-cache to create the caching table in the database

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.

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