Version Description
June 12, 2017 =
Added: Filter to change the value of the option when using
WPI()->get_option()
. See Issue #190.Added: SKU to packing slip.
Fixed: Packing slips redirecting to Edit Order page when using micro template. Consider using minimal template. Micro template is deprecated and will probably no longer be supported in future versions.
Fixed: WC 2.6 compatibility.
Download this release
Release Info
Developer | baaaaas |
Plugin | WooCommerce PDF Invoices |
Version | 2.9.2 |
Comparing to | |
See all releases |
Code changes from version 2.9.1 to 2.9.2
- bootstrap.php +3 -3
- includes/class-packing-slip.php +30 -7
- includes/class-template.php +9 -0
- includes/compatibility/class-wc-order-compatibility.php +22 -0
- includes/templates/packing-slip/simple/minimal/body.php +10 -2
- includes/woocommerce-pdf-invoices.php +18 -15
- readme.txt +9 -2
- vendor/autoload.php +1 -1
- vendor/autoload_52.php +1 -1
- vendor/composer/ClassLoader.php +7 -3
- vendor/composer/LICENSE +1 -1
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_real_52.php +3 -3
- vendor/composer/autoload_static.php +3 -3
- vendor/composer/installed.json +33 -33
bootstrap.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: WooCommerce PDF Invoices
|
4 |
* Plugin URI: https://wordpress.org/plugins/woocommerce-pdf-invoices
|
5 |
* Description: Automatically generate and attach customizable PDF Invoices to WooCommerce emails and connect with Dropbox, Google Drive, OneDrive or Egnyte.
|
6 |
-
* Version: 2.9.
|
7 |
* Author: Bas Elbers
|
8 |
* Author URI: http://wcpdfinvoices.com
|
9 |
* License: GPL-2.0+
|
@@ -17,9 +17,9 @@ defined( 'ABSPATH' ) or exit;
|
|
17 |
/**
|
18 |
* @deprecated instead use WPI_VERSION.
|
19 |
*/
|
20 |
-
define( 'BEWPI_VERSION', '2.9.
|
21 |
|
22 |
-
define( 'WPI_VERSION', '2.9.
|
23 |
|
24 |
/**
|
25 |
* Load WooCommerce PDF Invoices plugin.
|
3 |
* Plugin Name: WooCommerce PDF Invoices
|
4 |
* Plugin URI: https://wordpress.org/plugins/woocommerce-pdf-invoices
|
5 |
* Description: Automatically generate and attach customizable PDF Invoices to WooCommerce emails and connect with Dropbox, Google Drive, OneDrive or Egnyte.
|
6 |
+
* Version: 2.9.2
|
7 |
* Author: Bas Elbers
|
8 |
* Author URI: http://wcpdfinvoices.com
|
9 |
* License: GPL-2.0+
|
17 |
/**
|
18 |
* @deprecated instead use WPI_VERSION.
|
19 |
*/
|
20 |
+
define( 'BEWPI_VERSION', '2.9.2' );
|
21 |
|
22 |
+
define( 'WPI_VERSION', '2.9.2' );
|
23 |
|
24 |
/**
|
25 |
* Load WooCommerce PDF Invoices plugin.
|
includes/class-packing-slip.php
CHANGED
@@ -33,7 +33,16 @@ if ( ! class_exists( 'BEWPI_Packing_Slip' ) ) {
|
|
33 |
* Initialize packing slips hooks.
|
34 |
*/
|
35 |
public static function init_hooks() {
|
36 |
-
add_action( '
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
}
|
38 |
|
39 |
/**
|
@@ -42,11 +51,6 @@ if ( ! class_exists( 'BEWPI_Packing_Slip' ) ) {
|
|
42 |
* @param WC_Order $order WooCommerce order object.
|
43 |
*/
|
44 |
public static function add_packing_slip_pdf( $order ) {
|
45 |
-
$template_options = get_option( 'bewpi_template_settings' );
|
46 |
-
if ( $template_options['bewpi_disable_packing_slips'] ) {
|
47 |
-
return;
|
48 |
-
}
|
49 |
-
|
50 |
$order_id = BEWPI_WC_Order_Compatibility::get_id( $order );
|
51 |
|
52 |
// View Packing Slip.
|
@@ -62,12 +66,31 @@ if ( ! class_exists( 'BEWPI_Packing_Slip' ) ) {
|
|
62 |
printf( '<a href="%1$s" title="%2$s" class="button shop-order-action packing-slip wpi" target="_blank">%2$s</a>', $url, __( 'View packing slip', 'woocommerce-pdf-invoices' ) );
|
63 |
}
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
/**
|
66 |
* Get path for Packing Slip PDF.
|
67 |
*
|
68 |
* @return string
|
69 |
*/
|
70 |
-
public function get_pdf_path(){
|
71 |
// Yearly sub-folders.
|
72 |
if ( WPI()->get_option( 'template', 'reset_counter_yearly' ) ) {
|
73 |
$year = date_i18n( 'Y', current_time( 'timestamp' ) );
|
33 |
* Initialize packing slips hooks.
|
34 |
*/
|
35 |
public static function init_hooks() {
|
36 |
+
add_action( 'admin_init', array( __CLASS__, 'admin_init_hooks' ) );
|
37 |
+
}
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Initialize admin hooks.
|
41 |
+
*/
|
42 |
+
public static function admin_init_hooks() {
|
43 |
+
if ( self::show_packing_slip_icons() ) {
|
44 |
+
add_action( 'woocommerce_admin_order_actions_end', array( __CLASS__, 'add_packing_slip_pdf' ) );
|
45 |
+
}
|
46 |
}
|
47 |
|
48 |
/**
|
51 |
* @param WC_Order $order WooCommerce order object.
|
52 |
*/
|
53 |
public static function add_packing_slip_pdf( $order ) {
|
|
|
|
|
|
|
|
|
|
|
54 |
$order_id = BEWPI_WC_Order_Compatibility::get_id( $order );
|
55 |
|
56 |
// View Packing Slip.
|
66 |
printf( '<a href="%1$s" title="%2$s" class="button shop-order-action packing-slip wpi" target="_blank">%2$s</a>', $url, __( 'View packing slip', 'woocommerce-pdf-invoices' ) );
|
67 |
}
|
68 |
|
69 |
+
/**
|
70 |
+
* Determine whether to show packing slip PDF icon on Shop Order page.
|
71 |
+
*
|
72 |
+
* @return bool
|
73 |
+
*/
|
74 |
+
private static function show_packing_slip_icons() {
|
75 |
+
if ( WPI()->get_option( 'template','disable_packing_slips' ) ) {
|
76 |
+
return false;
|
77 |
+
}
|
78 |
+
|
79 |
+
// There is no packing slip available for micro template.
|
80 |
+
$template_name = WPI()->get_option( 'template', 'template_name' );
|
81 |
+
if ( strpos( $template_name, 'micro' ) !== false ) {
|
82 |
+
return false;
|
83 |
+
}
|
84 |
+
|
85 |
+
return true;
|
86 |
+
}
|
87 |
+
|
88 |
/**
|
89 |
* Get path for Packing Slip PDF.
|
90 |
*
|
91 |
* @return string
|
92 |
*/
|
93 |
+
public function get_pdf_path() {
|
94 |
// Yearly sub-folders.
|
95 |
if ( WPI()->get_option( 'template', 'reset_counter_yearly' ) ) {
|
96 |
$year = date_i18n( 'Y', current_time( 'timestamp' ) );
|
includes/class-template.php
CHANGED
@@ -305,6 +305,15 @@ class BEWPI_Template {
|
|
305 |
return substr( get_locale(), 0, 2 );
|
306 |
}
|
307 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
308 |
/**
|
309 |
* Set order.
|
310 |
*
|
305 |
return substr( get_locale(), 0, 2 );
|
306 |
}
|
307 |
|
308 |
+
/**
|
309 |
+
* Get order object.
|
310 |
+
*
|
311 |
+
* @return WC_Order $order order object.
|
312 |
+
*/
|
313 |
+
public function get_order() {
|
314 |
+
return $this->order;
|
315 |
+
}
|
316 |
+
|
317 |
/**
|
318 |
* Set order.
|
319 |
*
|
includes/compatibility/class-wc-order-compatibility.php
CHANGED
@@ -224,6 +224,10 @@ if ( ! class_exists( 'BEWPI_WC_Order_Compatibility' ) ) :
|
|
224 |
$prop = 'order_shipping';
|
225 |
|
226 |
// get the post_parent and bail early
|
|
|
|
|
|
|
|
|
227 |
} elseif ( 'parent_id' === $prop ) {
|
228 |
|
229 |
return $object->post->post_parent;
|
@@ -484,6 +488,24 @@ if ( ! class_exists( 'BEWPI_WC_Order_Compatibility' ) ) :
|
|
484 |
return self::get_prop( $order, 'shipping_address_1' ) || self::get_prop( $order, 'shipping_address_2' );
|
485 |
}
|
486 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
487 |
|
488 |
}
|
489 |
|
224 |
$prop = 'order_shipping';
|
225 |
|
226 |
// get the post_parent and bail early
|
227 |
+
} elseif ( 'total' === $prop && 'view' !== $context ) {
|
228 |
+
|
229 |
+
$prop = 'order_total';
|
230 |
+
|
231 |
} elseif ( 'parent_id' === $prop ) {
|
232 |
|
233 |
return $object->post->post_parent;
|
488 |
return self::get_prop( $order, 'shipping_address_1' ) || self::get_prop( $order, 'shipping_address_2' );
|
489 |
}
|
490 |
|
491 |
+
/**
|
492 |
+
* Get product.
|
493 |
+
*
|
494 |
+
* @param WC_Order $order order object.
|
495 |
+
* @param WC_Order_Item_Product $item order product object.
|
496 |
+
*
|
497 |
+
* @return bool|WC_Product
|
498 |
+
*/
|
499 |
+
public static function get_product( WC_Order $order, WC_Order_Item_Product $item ) {
|
500 |
+
|
501 |
+
if ( BEWPI_WC_Core_Compatibility::is_wc_version_gte_3_0() ) {
|
502 |
+
$product = $item->get_product();
|
503 |
+
} else {
|
504 |
+
$product = $order->get_product_from_item( $item );
|
505 |
+
}
|
506 |
+
|
507 |
+
return $product;
|
508 |
+
}
|
509 |
|
510 |
}
|
511 |
|
includes/templates/packing-slip/simple/minimal/body.php
CHANGED
@@ -51,6 +51,10 @@ $color = $templater->get_option( 'bewpi_color_theme' );
|
|
51 |
<table>
|
52 |
<thead>
|
53 |
<tr class="heading" bgcolor="<?php echo $color; ?>;">
|
|
|
|
|
|
|
|
|
54 |
<th>
|
55 |
<?php _e( 'Product', 'woocommerce-pdf-invoices' ); ?>
|
56 |
</th>
|
@@ -63,11 +67,15 @@ $color = $templater->get_option( 'bewpi_color_theme' );
|
|
63 |
<tbody>
|
64 |
<?php
|
65 |
foreach ( $line_items as $item_id => $item ) {
|
66 |
-
$product =
|
67 |
?>
|
68 |
|
69 |
<tr class="item">
|
70 |
-
<td width="
|
|
|
|
|
|
|
|
|
71 |
<?php
|
72 |
echo $item['name'];
|
73 |
|
51 |
<table>
|
52 |
<thead>
|
53 |
<tr class="heading" bgcolor="<?php echo $color; ?>;">
|
54 |
+
<th>
|
55 |
+
<?php _e( 'SKU', 'woocommerce-pdf-invoices' ); ?>
|
56 |
+
</th>
|
57 |
+
|
58 |
<th>
|
59 |
<?php _e( 'Product', 'woocommerce-pdf-invoices' ); ?>
|
60 |
</th>
|
67 |
<tbody>
|
68 |
<?php
|
69 |
foreach ( $line_items as $item_id => $item ) {
|
70 |
+
$product = BEWPI_WC_Order_Compatibility::get_product( $order, $item );
|
71 |
?>
|
72 |
|
73 |
<tr class="item">
|
74 |
+
<td width="10%">
|
75 |
+
<?php echo $product && $product->get_sku() ? $product->get_sku() : '-'; ?>
|
76 |
+
</td>
|
77 |
+
|
78 |
+
<td width="65%">
|
79 |
<?php
|
80 |
echo $item['name'];
|
81 |
|
includes/woocommerce-pdf-invoices.php
CHANGED
@@ -456,13 +456,13 @@ if ( ! class_exists( 'BE_WooCommerce_PDF_Invoices' ) ) {
|
|
456 |
return $attachments;
|
457 |
}
|
458 |
|
459 |
-
$skip = apply_filters( 'bewpi_skip_invoice_generation', false, $status, $order );
|
460 |
if ( $skip ) {
|
461 |
return $attachments;
|
462 |
}
|
463 |
|
464 |
-
$
|
465 |
-
if (
|
466 |
return $attachments;
|
467 |
}
|
468 |
|
@@ -475,6 +475,7 @@ if ( ! class_exists( 'BE_WooCommerce_PDF_Invoices' ) ) {
|
|
475 |
}
|
476 |
|
477 |
// check if email is enabled.
|
|
|
478 |
if ( ! isset( $general_options[ $status ] ) || ! $general_options[ $status ] ) {
|
479 |
return $attachments;
|
480 |
}
|
@@ -713,7 +714,7 @@ if ( ! class_exists( 'BE_WooCommerce_PDF_Invoices' ) ) {
|
|
713 |
* @param WC_Order $order WC_Order object.
|
714 |
*/
|
715 |
public static function set_order( $order_id, $posted_data, $order ) {
|
716 |
-
|
717 |
}
|
718 |
|
719 |
/**
|
@@ -726,21 +727,23 @@ if ( ! class_exists( 'BE_WooCommerce_PDF_Invoices' ) ) {
|
|
726 |
*/
|
727 |
public static function get_option( $group, $name = '' ) {
|
728 |
$option = apply_filters( 'bewpi_option', false, $group, $name );
|
729 |
-
if ( $option !== false ) {
|
730 |
-
return $option;
|
731 |
-
}
|
732 |
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
|
|
|
|
|
|
|
|
|
|
737 |
|
738 |
-
|
739 |
-
if ( ! isset( $options[ $name ] ) ) {
|
740 |
-
return false;
|
741 |
}
|
742 |
|
743 |
-
|
|
|
|
|
744 |
}
|
745 |
|
746 |
/**
|
456 |
return $attachments;
|
457 |
}
|
458 |
|
459 |
+
$skip = apply_filters( 'bewpi_skip_invoice_generation', false, $status, $order->get_total() );
|
460 |
if ( $skip ) {
|
461 |
return $attachments;
|
462 |
}
|
463 |
|
464 |
+
$order_total = BEWPI_WC_Order_Compatibility::get_prop( $order, 'total' );
|
465 |
+
if ( (double) $order_total === 0.00 && WPI()->get_option( 'general', 'disable_free_products' ) ) {
|
466 |
return $attachments;
|
467 |
}
|
468 |
|
475 |
}
|
476 |
|
477 |
// check if email is enabled.
|
478 |
+
$general_options = get_option( 'bewpi_general_settings' );
|
479 |
if ( ! isset( $general_options[ $status ] ) || ! $general_options[ $status ] ) {
|
480 |
return $attachments;
|
481 |
}
|
714 |
* @param WC_Order $order WC_Order object.
|
715 |
*/
|
716 |
public static function set_order( $order_id, $posted_data, $order ) {
|
717 |
+
WPI()->templater()->set_order( $order );
|
718 |
}
|
719 |
|
720 |
/**
|
727 |
*/
|
728 |
public static function get_option( $group, $name = '' ) {
|
729 |
$option = apply_filters( 'bewpi_option', false, $group, $name );
|
|
|
|
|
|
|
730 |
|
731 |
+
if ( false === $option ) {
|
732 |
+
$options = get_option( 'bewpi_' . $group . '_settings' );
|
733 |
+
if ( false === $options ) {
|
734 |
+
return false;
|
735 |
+
}
|
736 |
+
|
737 |
+
if ( ! isset( $options[ 'bewpi_' . $name ] ) ) {
|
738 |
+
return false;
|
739 |
+
}
|
740 |
|
741 |
+
$option = $options[ 'bewpi_' . $name ];
|
|
|
|
|
742 |
}
|
743 |
|
744 |
+
$hook = sprintf( 'bewpi_pre_option-%1$s-%2$s', $group, $name );
|
745 |
+
|
746 |
+
return apply_filters( $hook, $option );
|
747 |
}
|
748 |
|
749 |
/**
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: baaaaas
|
|
3 |
Donate link:
|
4 |
Tags: woocommerce pdf invoices, invoice, packing slips, delivery note, packing list, shipping list, generate, pdf, woocommerce, attachment, email, customer invoice, processing, vat, tax, sequential, number, dropbox, google drive, onedrive, egnyte, cloud, storage
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 2.9.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -234,6 +234,13 @@ Important: A custom template is required to add a custom field to the PDF invoic
|
|
234 |
|
235 |
== Changelog ==
|
236 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
237 |
= 2.9.1 - May 15, 2017 =
|
238 |
|
239 |
- Improved: Loading settings only on settings pages.
|
3 |
Donate link:
|
4 |
Tags: woocommerce pdf invoices, invoice, packing slips, delivery note, packing list, shipping list, generate, pdf, woocommerce, attachment, email, customer invoice, processing, vat, tax, sequential, number, dropbox, google drive, onedrive, egnyte, cloud, storage
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 4.8
|
7 |
+
Stable tag: 2.9.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
234 |
|
235 |
== Changelog ==
|
236 |
|
237 |
+
= 2.9.2 - June 12, 2017 =
|
238 |
+
|
239 |
+
- Added: Filter to change the value of the option when using `WPI()->get_option()`. See [Issue #190](https://github.com/baselbers/woocommerce-pdf-invoices/issues/190).
|
240 |
+
- Added: SKU to packing slip.
|
241 |
+
- Fixed: Packing slips redirecting to Edit Order page when using micro template. Consider using minimal template. Micro template is deprecated and will probably no longer be supported in future versions.
|
242 |
+
- Fixed: WC 2.6 compatibility.
|
243 |
+
|
244 |
= 2.9.1 - May 15, 2017 =
|
245 |
|
246 |
- Improved: Loading settings only on settings pages.
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInitc5320bd3a3438b53bbd924af31580299::getLoader();
|
vendor/autoload_52.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit600ff7d79a406b9ce509155c07423426::getLoader();
|
vendor/composer/ClassLoader.php
CHANGED
@@ -374,9 +374,13 @@ class ClassLoader
|
|
374 |
|
375 |
$first = $class[0];
|
376 |
if (isset($this->prefixLengthsPsr4[$first])) {
|
377 |
-
|
378 |
-
|
379 |
-
|
|
|
|
|
|
|
|
|
380 |
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
|
381 |
return $file;
|
382 |
}
|
374 |
|
375 |
$first = $class[0];
|
376 |
if (isset($this->prefixLengthsPsr4[$first])) {
|
377 |
+
$subPath = $class;
|
378 |
+
while (false !== $lastPos = strrpos($subPath, '\\')) {
|
379 |
+
$subPath = substr($subPath, 0, $lastPos);
|
380 |
+
$search = $subPath.'\\';
|
381 |
+
if (isset($this->prefixDirsPsr4[$search])) {
|
382 |
+
foreach ($this->prefixDirsPsr4[$search] as $dir) {
|
383 |
+
$length = $this->prefixLengthsPsr4[$first][$search];
|
384 |
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
|
385 |
return $file;
|
386 |
}
|
vendor/composer/LICENSE
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
|
2 |
-
Copyright (c)
|
3 |
|
4 |
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5 |
of this software and associated documentation files (the "Software"), to deal
|
1 |
|
2 |
+
Copyright (c) Nils Adermann, Jordi Boggiano
|
3 |
|
4 |
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5 |
of this software and associated documentation files (the "Software"), to deal
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit94c7f0816fa203ee4c190ff0bde4f23b
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
-
call_user_func(\Composer\Autoload\
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInitc5320bd3a3438b53bbd924af31580299
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInitc5320bd3a3438b53bbd924af31580299', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitc5320bd3a3438b53bbd924af31580299', 'loadClassLoader'));
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInitc5320bd3a3438b53bbd924af31580299::getInitializer($loader));
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_real_52.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
4 |
|
5 |
-
class
|
6 |
private static $loader;
|
7 |
|
8 |
public static function loadClassLoader($class) {
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInitd96a93ae25e29657d38305d6b0f27714 {
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$vendorDir = dirname(dirname(__FILE__));
|
27 |
$baseDir = dirname($vendorDir);
|
2 |
|
3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
4 |
|
5 |
+
class ComposerAutoloaderInit600ff7d79a406b9ce509155c07423426 {
|
6 |
private static $loader;
|
7 |
|
8 |
public static function loadClassLoader($class) {
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit600ff7d79a406b9ce509155c07423426', 'loadClassLoader'), true /*, true */);
|
23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit600ff7d79a406b9ce509155c07423426', 'loadClassLoader'));
|
25 |
|
26 |
$vendorDir = dirname(dirname(__FILE__));
|
27 |
$baseDir = dirname($vendorDir);
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixesPsr0 = array (
|
10 |
'x' =>
|
@@ -71,8 +71,8 @@ class ComposerStaticInit94c7f0816fa203ee4c190ff0bde4f23b
|
|
71 |
public static function getInitializer(ClassLoader $loader)
|
72 |
{
|
73 |
return \Closure::bind(function () use ($loader) {
|
74 |
-
$loader->prefixesPsr0 =
|
75 |
-
$loader->classMap =
|
76 |
|
77 |
}, null, ClassLoader::class);
|
78 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInitc5320bd3a3438b53bbd924af31580299
|
8 |
{
|
9 |
public static $prefixesPsr0 = array (
|
10 |
'x' =>
|
71 |
public static function getInitializer(ClassLoader $loader)
|
72 |
{
|
73 |
return \Closure::bind(function () use ($loader) {
|
74 |
+
$loader->prefixesPsr0 = ComposerStaticInitc5320bd3a3438b53bbd924af31580299::$prefixesPsr0;
|
75 |
+
$loader->classMap = ComposerStaticInitc5320bd3a3438b53bbd924af31580299::$classMap;
|
76 |
|
77 |
}, null, ClassLoader::class);
|
78 |
}
|
vendor/composer/installed.json
CHANGED
@@ -1,37 +1,4 @@
|
|
1 |
[
|
2 |
-
{
|
3 |
-
"name": "xrstf/composer-php52",
|
4 |
-
"version": "v1.0.20",
|
5 |
-
"version_normalized": "1.0.20.0",
|
6 |
-
"source": {
|
7 |
-
"type": "git",
|
8 |
-
"url": "https://github.com/composer-php52/composer-php52.git",
|
9 |
-
"reference": "bd41459d5e27df8d33057842b32377c39e97a5a8"
|
10 |
-
},
|
11 |
-
"dist": {
|
12 |
-
"type": "zip",
|
13 |
-
"url": "https://api.github.com/repos/composer-php52/composer-php52/zipball/bd41459d5e27df8d33057842b32377c39e97a5a8",
|
14 |
-
"reference": "bd41459d5e27df8d33057842b32377c39e97a5a8",
|
15 |
-
"shasum": ""
|
16 |
-
},
|
17 |
-
"time": "2016-04-16T21:52:24+00:00",
|
18 |
-
"type": "library",
|
19 |
-
"extra": {
|
20 |
-
"branch-alias": {
|
21 |
-
"dev-default": "1.x-dev"
|
22 |
-
}
|
23 |
-
},
|
24 |
-
"installation-source": "dist",
|
25 |
-
"autoload": {
|
26 |
-
"psr-0": {
|
27 |
-
"xrstf\\Composer52": "lib/"
|
28 |
-
}
|
29 |
-
},
|
30 |
-
"notification-url": "https://packagist.org/downloads/",
|
31 |
-
"license": [
|
32 |
-
"MIT"
|
33 |
-
]
|
34 |
-
},
|
35 |
{
|
36 |
"name": "setasign/fpdi",
|
37 |
"version": "1.6.2",
|
@@ -146,5 +113,38 @@
|
|
146 |
"source": "https://github.com/mpdf/mpdf",
|
147 |
"docs": "http://mpdf.github.io"
|
148 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
}
|
150 |
]
|
1 |
[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
{
|
3 |
"name": "setasign/fpdi",
|
4 |
"version": "1.6.2",
|
113 |
"source": "https://github.com/mpdf/mpdf",
|
114 |
"docs": "http://mpdf.github.io"
|
115 |
}
|
116 |
+
},
|
117 |
+
{
|
118 |
+
"name": "xrstf/composer-php52",
|
119 |
+
"version": "v1.0.20",
|
120 |
+
"version_normalized": "1.0.20.0",
|
121 |
+
"source": {
|
122 |
+
"type": "git",
|
123 |
+
"url": "https://github.com/composer-php52/composer-php52.git",
|
124 |
+
"reference": "bd41459d5e27df8d33057842b32377c39e97a5a8"
|
125 |
+
},
|
126 |
+
"dist": {
|
127 |
+
"type": "zip",
|
128 |
+
"url": "https://api.github.com/repos/composer-php52/composer-php52/zipball/bd41459d5e27df8d33057842b32377c39e97a5a8",
|
129 |
+
"reference": "bd41459d5e27df8d33057842b32377c39e97a5a8",
|
130 |
+
"shasum": ""
|
131 |
+
},
|
132 |
+
"time": "2016-04-16T21:52:24+00:00",
|
133 |
+
"type": "library",
|
134 |
+
"extra": {
|
135 |
+
"branch-alias": {
|
136 |
+
"dev-default": "1.x-dev"
|
137 |
+
}
|
138 |
+
},
|
139 |
+
"installation-source": "dist",
|
140 |
+
"autoload": {
|
141 |
+
"psr-0": {
|
142 |
+
"xrstf\\Composer52": "lib/"
|
143 |
+
}
|
144 |
+
},
|
145 |
+
"notification-url": "https://packagist.org/downloads/",
|
146 |
+
"license": [
|
147 |
+
"MIT"
|
148 |
+
]
|
149 |
}
|
150 |
]
|