3
votes

First of all, i can't use composer because of my ISP, so, i need a way to install the DoctrineFixturesBundle manually, so i started downloading it from github, also the data-fixtures bundle. i create this folder structure in my project

vendor
  - doctrine
    - doctrine-fixtures-bundle
      - Doctrine
        - Bundle
         - FixturesBundle
           DoctrineFixturesBundle.php
           ..other files...


vendor
  - doctrine
    - data-fixtures
      - lib
      - test
      composer.json
      ..other files...

i did this by reading the composer.json file located within each bundle, then i edited the AppKernel.php and added

public function registerBundles(){
  .....
  new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(),
  .....
}

but it is not working, i always get:

 Fatal error: Class 'Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle' not 
 found in D:\wamp\www\cupon\app\AppKernel.php on line 20

Am i missing something? can i install those bundles manually?
Hope you can help me. thanks

1

1 Answers

2
votes

I think you need to setup the autoloading in your composer.json file:

{
    "autoload": {
        "psr-0": {
            "Doctrine\\Bundle\\FixturesBundle": "vendor/doctrine/doctrine-fixtures-bundle",
            "Doctrine\\Common\\DataFixtures": "vendor/doctrine/data-fixtures/lib",
        }
    }
}

Composer does this automatically on composer update, but as you didn't install the packages using composer, this wasn't done for these packages.