Skip to content

Commit

Permalink
update supported PHPPdf version to 1.1.x branch
Browse files Browse the repository at this point in the history
  • Loading branch information
psliwa committed Jan 1, 2012
1 parent 3754f15 commit f90857a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
3 changes: 0 additions & 3 deletions DependencyInjection/PsPdfExtension.php
Expand Up @@ -43,9 +43,6 @@ private function loadDefaults(ContainerBuilder $container)
{
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));

$extension = new \PHPPdf\Core\Configuration\DependencyInjection\Extension();
$extension->load(array(), $container);

$loader->load('pdf.xml');
}

Expand Down
11 changes: 7 additions & 4 deletions README.markdown
Expand Up @@ -10,24 +10,26 @@ Documentation of [PHPPdf][1] you can find on github (README file).
Installation
------------

1. Add this bundle and [PHPPdf][1] library to deps file:
1. Add this bundle and [PHPPdf][1] library to deps file and update vendors:

[PdfBundle]
git=git://github.com/psliwa/PdfBundle.git
target=/bundles/Ps/PdfBundle
[PHPPdf]
git=git://github.com/psliwa/PHPPdf.git
version=origin/1.1.x

2. Download dependencies (for example Zend_Pdf component) of PHPPdf library. You can skip this step, if your application has had dependency on ZF2 framework already.
2. Download dependencies (for example Zend_Pdf component) of PHPPdf library. You can skip this step, if your application has had dependency on ZF2 framework and [Imagine][2] already.

php vendor/PHPPdf/vendors.php

3. Register bundle and [PHPPdf][1] library in autoloader:
3. Register bundle, [PHPPdf][1], [Imagine][2] and ZF libraries in autoloader:

//app/autoload.php
$loader->registerNamespaces(array(
'Ps' => __DIR__.'/../vendor/bundles',
'PHPPdf' => __DIR__.'/../vendor/PHPPdf/lib',
'Imagine' => array(__DIR__.'/../vendor/PHPPdf/lib', __DIR__.'/../vendor/PHPPdf/lib/vendor/Imagine/lib'),
'Zend' => __DIR__.'/../vendor/PHPPdf/lib/vendor',//If you have used ZF2 packages already, you should skip this entry
));

Expand Down Expand Up @@ -125,4 +127,5 @@ Pdf annotation has four optional properties:
* documentParserType - type of parser: xml or markdown
* enableCache - pdf output should by cached? True or false, default: false. Hash (md5) from template and stylesheet content is a cache key, only PHPPdf invocation is cached, controller is always called.

[1]: https://github.com/psliwa/PHPPdf
[1]: https://github.com/psliwa/PHPPdf
[2]: https://github.com/avalanche123/Imagine

0 comments on commit f90857a

Please sign in to comment.