stefandoorn/google-shopping-category-form-type-bundle

Form type to select a Google Shopping Category ID

Installs: 7 063

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 3

Type:symfony-bundle

pkg:composer/stefandoorn/google-shopping-category-form-type-bundle


README

Build Status Dependabot Status

GoogleShoppingCategoryFormTypeBundle

Installation

    composer require stefandoorn/google-shopping-category-form-type-bundle

Usage

In your form, use:

    $builder->add('googleShoppingCategory', GoogleShoppingCategoryType::class);

The locale of the category list downloaded can be adjusted by injecting another locale into the downloader service:

    google_shopping_category.downloader.category:
        class: StefanDoorn\GoogleShoppingCategoryFormTypeBundle\Downloader\GoogleShoppingCategoryList
        arguments:
            - 'nl_NL'