Skip to content

Latest commit

 

History

History
61 lines (43 loc) · 1.6 KB

legacy_installation.md

File metadata and controls

61 lines (43 loc) · 1.6 KB

Legacy installation (without Symfony Flex)

  1. Require plugin with composer:

    composer require sylius/admin-order-creation-plugin
  2. Import configuration to app/config/config.yml:

    imports:
        - { resource: "@SyliusAdminOrderCreationPlugin/Resources/config/app/config.yml" }
  3. Import routing to app/config/routing.yml:

    sylius_admin_order_creation:
        resource: "@SyliusAdminOrderCreationPlugin/Resources/config/app/routing.yml"
  4. Add plugin class to your AppKernel:

    $bundles = [
        new \FOS\JsRoutingBundle\FOSJsRoutingBundle(),
        new \Sylius\AdminOrderCreationPlugin\SyliusAdminOrderCreationPlugin(),
    ];
  5. Copy Sylius templates overridden in plugin to your templates directory (e.g app/Resources/SyliusAdminBundle/views/):

    mkdir -p app/Resources/SyliusAdminBundle/views/
    cp -R vendor/sylius/admin-order-creation-plugin/src/Resources/views/SyliusAdminBundle/* app/Resources/SyliusAdminBundle/views/
  6. Override repositories

    As shown here and here.

  7. Copy plugin migrations to your migrations directory (e.g. src/Migrations) and apply them to your database:

    cp -R vendor/sylius/admin-order-creation-plugin/migrations/* src/Migrations
    bin/console doctrine:migrations:migrate
  8. Install FOSJsRoutingBundle assets:

    bin/console assets:install --symlink web
  9. Clear cache:

    bin/console cache:clear