Skip to content

Commit

Permalink
Merge pull request propelorm#169 from bugbyte/patch-1
Browse files Browse the repository at this point in the history
Updated Composer installation docs
  • Loading branch information
willdurand committed Oct 30, 2012
2 parents 1399586 + 98e28f1 commit 6dec13c
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Expand Up @@ -21,6 +21,33 @@ Composer will install it into your project's plugins directory automatically, an
}
}

Of course, don't forget to add Composer's autoloader to your ProjectConfiguration:

``` php
// config/ProjectConfiguration.class.php

require __DIR__ .'/../lib/vendor/autoload.php';

require_once dirname(__FILE__) .'/../lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php';
sfCoreAutoload::register();

class ProjectConfiguration extends sfProjectConfiguration
{
public function setup()
{
$this->enablePlugins(array(
'sfPropelORMPlugin',
...
));

// mandatory because of the Composer vendor directory naming scheme
sfConfig::set('sf_phing_path', sfConfig::get('sf_lib_dir') .'/vendor/phing/phing');
sfConfig::set('sf_propel_path', sfConfig::get('sf_lib_dir') .'/vendor/propel/propel1');
}
}
```


### The Git way

Clone the plugin from Github:
Expand Down

0 comments on commit 6dec13c

Please sign in to comment.