This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace AcmeBundle\Connector\Step; | |
| use Akeneo\Pim\Enrichment\Bundle\Elasticsearch\ProductAndProductModelQueryBuilderFactory; | |
| use Akeneo\Pim\Enrichment\Component\Product\Query\Filter\Operators; | |
| use Akeneo\Tool\Component\Batch\Item\DataInvalidItem; | |
| use Akeneo\Tool\Component\Batch\Item\InvalidItemException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace AcmeBundle\Connector\Step; | |
| use Akeneo\Tool\Component\Batch\Job\JobRepositoryInterface; | |
| use Akeneo\Tool\Component\Batch\Model\StepExecution; | |
| use Akeneo\Tool\Component\Batch\Step\AbstractStep; | |
| use Symfony\Bundle\FrameworkBundle\Console\Application; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AcmeBundle\Entity\DropboxAsset: | |
| type: entity | |
| table: acme_dropbox_asset | |
| repositoryClass: AcmeBundle\Repository\DropboxAssetRepository | |
| id: | |
| id: | |
| type: integer | |
| generator: { strategy: AUTO } | |
| fields: | |
| value: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace AcmeBundle\Connector\Step; | |
| use Akeneo\Tool\Component\Batch\Item\InvalidItemException; | |
| use Akeneo\Tool\Component\Batch\Model\StepExecution; | |
| use Akeneo\Tool\Component\Batch\Model\Warning; | |
| use Akeneo\Tool\Component\Batch\Step\AbstractStep; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # app/config/parameters.yml | |
| parameters: | |
| # ajouter cette clé à la suite des paramètres déjà présents dans le fichier | |
| dropbox.access_token: fdskjnq89SDhdqksdjqksd78QSDbkjbqsdqsd3DQSD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # src/AcmeBundle/Resources/config/dropbox.yml | |
| services: | |
| flysystem.dropbox.client: | |
| class: Spatie\Dropbox\Client | |
| arguments: | |
| - '%dropbox.access_token%' | |
| flysystem.dropbox.adapter: | |
| class: Spatie\FlysystemDropbox\DropboxAdapter | |
| arguments: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| parameters: | |
| acme.dropbox.connector: 'Dropbox Connector' | |
| acme.job.import_dropbox_assets.name: 'import_dropbox_assets' | |
| services: | |
| acme.job.import_dropbox_assets: | |
| class: '%pim_connector.job.simple_job.class%' | |
| arguments: | |
| - '%acme.job.import_dropbox_assets.name%' | |
| - '@event_dispatcher' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Oro\Bundle\PimDataGridBundle\EventListener; | |
| use Oro\Bundle\DataGridBundle\Event\BuildAfter; | |
| use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; | |
| /** | |
| * @author Philippe Mossière <philippe.mossiere@akeneo.com> | |
| * @copyright 2017 Akeneo SAS (http://www.akeneo.com) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # src/App/Resources/config/services.yml | |
| services: | |
| pim_enrich.event_listener.add_username_to_grid_listener: | |
| class: 'App\Listener\AddUsernameToGridListener' | |
| arguments: | |
| - '@security.token_storage' | |
| - | |
| - 'ROLE_ADMINISTRATOR' | |
| tags: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // src/App/Listener/AddUsernameToGrisListener.php | |
| <?php | |
| namespace App\Listener; | |
| use Oro\Bundle\DataGridBundle\Event\BuildAfter; | |
| use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; |