Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated docs

  • Loading branch information...
commit fea606b6725ff012fdbba03bccdd68f2bc130936 1 parent c2c5dcd
@peschee peschee authored
Showing with 4 additions and 17 deletions.
  1. +2 −8 doc/imagine.md
  2. +2 −9 doc/snappy.md
View
10 doc/imagine.md
@@ -6,7 +6,6 @@ in [Silex](http://silex-project.org/).
## Parameters
* __imagine.factory (optional):__ Image factory to use (_Gd_, Gmagick, Imagick)
-* __imagine.class_path (optional):__ Path to where the Imagine library is located.
## Services
@@ -14,18 +13,13 @@ in [Silex](http://silex-project.org/).
## Registering
-Make sure you place a copy of _Imagine_ in the `vendor/imagine directory.
+If you are using [composer](http://getcomposer.org) to include the SilexServiceProvider in your project, you do not need to register anything. Composer automatically adds the appropriate namespaces to the autoloader.
-```
-git submodule add git://github.com/GromNaN/SilexServiceProvider.git vendor/SilexServiceProvider
-git submodule add git://github.com/avalanche123/Imagine.git vendor/imagine
-```
+In case you're not using composer, you will need to register the `Imagine` namespace in your autoloader yourself. Make sure you place a copy of _Imagine_ in the `vendor/imagine` directory.
Register the service provider in your Silex application.
```php
-$app['autoloader']->registerNamespace('Grom\\Silex', __DIR__.'/vendor/SilexServiceProvider/src/');
-
$app->register(new Grom\Silex\ImagineServiceProvider(), array(
'imagine.factory' => 'Gd',
'imagine.base_path' => __DIR__.'/vendor/imagine',
View
11 doc/snappy.md
@@ -8,7 +8,6 @@ The SnappyProvider provides integration with [Snappy](https://github.com/knplabs
* __snappy.image_options:__ Array of options to give to Snappy (see [wkhtmltoimage doc](http://madalgo.au.dk/~jakobt/wkhtmltoxdoc/wkhtmltoimage_0.10.0_rc2-doc.html)).
* __snappy.pdf_binary:__ Absolute path to `wkhtmltopdf`.
* __snappy.pdf_options:__ Array of options to give to Snappy (see [wkhtmltopdf doc](http://madalgo.au.dk/~jakobt/wkhtmltoxdoc/wkhtmltopdf_0.10.0_rc2-doc.html)).
-* __snappy.class_path:__ (optional) Path to where the Snappy library is located.
## Services
@@ -17,20 +16,14 @@ The SnappyProvider provides integration with [Snappy](https://github.com/knplabs
## Registering
-Make sure you place a copy of Snappy in the `vendor/snappy` directory and a copy of SilexServiceProvider in `vendor/SilexServiceProvider`.
+If you are using [composer](http://getcomposer.org) to include the SilexServiceProvider in your project, you do not need to register anything. Composer automatically adds the appropriate namespaces to the autoloader.
-```
-git submodule add git://github.com/knplabs/snappy.git vendor/snappy
-git submodule add git://github.com/GromNaN/SilexServiceProvider.git vendor/SilexServiceProvider
-```
+In case you're not using composer, you will need to register the `Knp\Snappy` namespace in your autoloader yourself. Make sure you place a copy of _Snappy_ in the `vendor/snappy` directory.
```php
-$app['autoloader']->registerNamespace('Grom\\Silex', __DIR__.'/vendor/SilexServiceProvider/src/');
-
$app->register(new Grom\Silex\SnappyServiceProvider(), array(
'snappy.image_binary' => '/usr/local/bin/wkhtmltoimage',
'snappy.pdf_binary' => '/usr/local/bin/wkhtmltopdf',
- 'snappy.class_path' => __DIR__.'/vendor/snappy/src',
));
```

0 comments on commit fea606b

Please sign in to comment.
Something went wrong with that request. Please try again.