diff --git a/src/Symfony/Framework/PropelBundle/README b/src/Symfony/Framework/PropelBundle/README index 586c93147af4..795b68423830 100644 --- a/src/Symfony/Framework/PropelBundle/README +++ b/src/Symfony/Framework/PropelBundle/README @@ -20,6 +20,9 @@ Installation Sample Configuration -------------------- +### Project configuration + + # in sandbox/hello/config/config.yml propel.generator: path: %kernel.root_dir%/../src/vendor/propel/generator @@ -37,3 +40,39 @@ Sample Configuration # password: null # dsn: mysql:host=localhost;dbname=test # options: {} + +### Autoloading + + // in src/autoload.php + registerNamespaces(array( + 'Symfony' => __DIR__.'/vendor/symfony/src', + 'Application' => __DIR__, + 'Bundle' => __DIR__, + 'Doctrine' => __DIR__.'/vendor/doctrine/lib', + )); + $loader->registerPrefixes(array( + 'Swift_' => __DIR__.'/vendor/swiftmailer/lib/classes', + 'Zend_' => __DIR__.'/vendor/zend/library', + )); + $loader->register(); + + require_once __DIR__.'/vendor/propel/runtime/lib/Propel.php'; + + set_include_path( + __DIR__.'/vendor/phing/classes'.PATH_SEPARATOR. + __DIR__.'/vendor/zend/library'.PATH_SEPARATOR. + __DIR__.'/vendor/swiftmailer/lib'.PATH_SEPARATOR. + get_include_path() + ); + +Known Problems +-------------- + +Your application must not be un a path inclufing dots in directory names (i.e. '/Users/me/symfony/2.0/sandbox/' fails). \ No newline at end of file