Skip to content
This repository
Browse code

update supported PHPPdf version to 1.1.x branch

  • Loading branch information...
commit f90857a5be360d5a3074791de7b221e3f9b279a7 1 parent 3754f15
Piotr Śliwa authored
3  DependencyInjection/PsPdfExtension.php
@@ -43,9 +43,6 @@ private function loadDefaults(ContainerBuilder $container)
43 43 {
44 44 $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
45 45
46   - $extension = new \PHPPdf\Core\Configuration\DependencyInjection\Extension();
47   - $extension->load(array(), $container);
48   -
49 46 $loader->load('pdf.xml');
50 47 }
51 48
11 README.markdown
Source Rendered
@@ -10,24 +10,26 @@ Documentation of [PHPPdf][1] you can find on github (README file).
10 10 Installation
11 11 ------------
12 12
13   - 1. Add this bundle and [PHPPdf][1] library to deps file:
  13 + 1. Add this bundle and [PHPPdf][1] library to deps file and update vendors:
14 14
15 15 [PdfBundle]
16 16 git=git://github.com/psliwa/PdfBundle.git
17 17 target=/bundles/Ps/PdfBundle
18 18 [PHPPdf]
19 19 git=git://github.com/psliwa/PHPPdf.git
  20 + version=origin/1.1.x
20 21
21   - 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.
  22 + 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.
22 23
23 24 php vendor/PHPPdf/vendors.php
24 25
25   - 3. Register bundle and [PHPPdf][1] library in autoloader:
  26 + 3. Register bundle, [PHPPdf][1], [Imagine][2] and ZF libraries in autoloader:
26 27
27 28 //app/autoload.php
28 29 $loader->registerNamespaces(array(
29 30 'Ps' => __DIR__.'/../vendor/bundles',
30 31 'PHPPdf' => __DIR__.'/../vendor/PHPPdf/lib',
  32 + 'Imagine' => array(__DIR__.'/../vendor/PHPPdf/lib', __DIR__.'/../vendor/PHPPdf/lib/vendor/Imagine/lib'),
31 33 'Zend' => __DIR__.'/../vendor/PHPPdf/lib/vendor',//If you have used ZF2 packages already, you should skip this entry
32 34 ));
33 35
@@ -125,4 +127,5 @@ Pdf annotation has four optional properties:
125 127 * documentParserType - type of parser: xml or markdown
126 128 * 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.
127 129
128   -[1]: https://github.com/psliwa/PHPPdf
  130 +[1]: https://github.com/psliwa/PHPPdf
  131 +[2]: https://github.com/avalanche123/Imagine

0 comments on commit f90857a

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