PHP code example of baks-dev / field-country
1. Go to this page and download the library: Download baks-dev/field-country library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
baks-dev / field-country example snippets
php
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
use BaksDev\Field\Country\Choice\CountryFieldChoice;
return static function (ContainerConfigurator $configurator) {
$services = $configurator->services()
->defaults()
->autowire(true)
->autoconfigure(true)
;
/** Страны */
$services->set(CountryFieldChoice::class)
->tag('baks.fields.choice')
;
};