Skip to content

Latest commit

 

History

History
57 lines (43 loc) · 1.19 KB

legacy_installation.md

File metadata and controls

57 lines (43 loc) · 1.19 KB

Legacy installation (without Symfony Flex)

  1. Require plugin with composer:

    composer require sylius/paypal-plugin
  2. Add plugin class and other required bundles to your config/bundles.php:

    $bundles = [
        Sylius\PayPalPlugin\SyliusPayPalPlugin::class => ['all' => true],
    ];
  3. Import configuration:

    imports:
        - { resource: '@SyliusPayPalPlugin/config/config.yaml' }
  4. Import routes:

    sylius_refund:
        resource: "@SyliusPayPalPlugin/config/routes.yaml"
  5. Add FOS\RestBundle configuration to your config/packages/fos_rest.yaml file

     fos_rest:
        exception: true
        view:
            formats:
                json: true
                xml:  true
            empty_content: 204
        format_listener:
            rules:
                - { path: '^/api/.*', priorities: ['json', 'xml'], fallback_format: json, prefer_extension: true }
                - { path: '^/', stop: true }
  6. Apply migrations to your database:

    bin/console doctrine:migrations:migrate
  7. Clear cache:

    bin/console cache:clear