mainlycode/zf1wrapperbundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Symfony 2 bundle for wrapping a Zend Framework 1 legacy application

Installs: 16 293

Dependents: 1

Suggesters: 0

Security: 0

Stars: 10

Watchers: 3

Forks: 1

Open Issues: 0

Type:symfony-bundle

dev-master 2014-01-03 09:40 UTC

This package is auto-updated.

Last update: 2022-02-01 12:25:04 UTC


README

Introduction

The Zf1WrapperBundle is a Symfony 2 bundle for wrapping a Zend Framework 1 application. It can be used to refactor parts of your legacy code to Symfony 2.

Installation

Composer

Add the following to your composer.json:

    "require": {
        "mainlycode/zf1wrapperbundle":  "dev-master"
    }

Configuration

1. config.yml

You need to configure is the location of your ZF1 bootstrap file (e.g. index.php). Add the following to your config.yml:

parameters:

    #Zf1WrapperBundle
    zf1wrapper_bootstrap_path: ../web/index.php

2. routing.yml

The bundle uses a catch-all route which you have to add to your routing.yml:

zf1_wrapper:
    resource: "@Zf1WrapperBundle/Resources/config/routing.yml"
    prefix:   /

3. AppKernel.php

Add the following to your app/AppKernel.php to enable the bundle

    public function registerBundles()
    {
        return array(
            // ...
            new MainlyCode\Zf1WrapperBundle\Zf1WrapperBundle(),
        );
    }