tardigrades / sexy-field-bundle
Symfony SexyFieldBundle
Installs: 2 326
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 5
Open Issues: 4
Type:symfony-bundle
Requires
- php: ^7.4
- ezyang/htmlpurifier: ^4.10
- symfony/dependency-injection: ^4
- symfony/http-kernel: ^4
- tardigrades/sexy-field: dev-master
- tardigrades/sexy-field-api: dev-master
- tardigrades/sexy-field-doctrine: dev-master
- tardigrades/sexy-field-entity: dev-master
- tardigrades/sexy-field-field-types-base: dev-master
- tardigrades/sexy-field-form: dev-master
Requires (Dev)
- mockery/mockery: ^0.9.9
- phpunit/phpunit: ^6.1
- squizlabs/php_codesniffer: ^2.8
This package is auto-updated.
Last update: 2024-11-30 01:40:00 UTC
README
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