Version Description
Changes for Theme Developers
- Improves control over pagination stops #2302 (thanks @IJMacD)
Fixes and improvements
- Fixes an error with array_filter and later versions of Twig
Download this release
Release Info
Developer | jarednova |
Plugin | Timber |
Version | 1.18.0 |
Comparing to | |
See all releases |
Code changes from version 1.17.0 to 1.18.0
- README.md +2 -2
- lib/Helper.php +3 -1
- lib/Pagination.php +7 -5
- lib/Timber.php +1 -1
- lib/Twig.php +1 -1
- readme.txt +15 -1
- timber-starter-theme/LICENSE +0 -0
- timber-starter-theme/static/site.js +0 -0
- timber-starter-theme/tests/test-timber-starter-theme.php +1 -1
- timber-starter-theme/{404.php → theme/404.php} +0 -0
- timber-starter-theme/{archive.php → theme/archive.php} +0 -0
- timber-starter-theme/{author.php → theme/author.php} +0 -0
- timber-starter-theme/{footer.php → theme/footer.php} +0 -0
- timber-starter-theme/{functions.php → theme/functions.php} +3 -3
- timber-starter-theme/{header.php → theme/header.php} +0 -0
- timber-starter-theme/{index.php → theme/index.php} +0 -0
- timber-starter-theme/{page.php → theme/page.php} +0 -0
- timber-starter-theme/{screenshot.png → theme/screenshot.png} +0 -0
- timber-starter-theme/{search.php → theme/search.php} +0 -0
- timber-starter-theme/{sidebar.php → theme/sidebar.php} +0 -0
- timber-starter-theme/{single.php → theme/single.php} +0 -0
- timber-starter-theme/{style.css → theme/style.css} +0 -0
- timber-starter-theme/{templates → views}/404.twig +0 -0
- timber-starter-theme/{templates → views}/archive.twig +0 -0
- timber-starter-theme/{templates → views}/author.twig +0 -0
- timber-starter-theme/{templates → views}/base.twig +0 -0
- timber-starter-theme/{templates → views}/comment-form.twig +0 -0
- timber-starter-theme/{templates → views}/comment.twig +0 -0
- timber-starter-theme/{templates → views}/footer.twig +0 -0
- timber-starter-theme/{templates → views}/html-header.twig +0 -0
- timber-starter-theme/{templates → views}/index.twig +0 -0
- timber-starter-theme/{templates → views}/menu.twig +0 -0
- timber-starter-theme/{templates → views}/page-plugin.twig +0 -0
- timber-starter-theme/{templates → views}/page.twig +0 -0
- timber-starter-theme/{templates → views}/partial/pagination.twig +0 -0
- timber-starter-theme/{templates → views}/search.twig +0 -0
- timber-starter-theme/{templates → views}/sidebar.twig +0 -0
- timber-starter-theme/{templates → views}/single-password.twig +0 -0
- timber-starter-theme/{templates → views}/single.twig +0 -0
- timber-starter-theme/{templates → views}/tease-post.twig +0 -0
- timber-starter-theme/{templates → views}/tease.twig +0 -0
- timber.php +1 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +6 -6
- vendor/composer/installed.json +2 -2
README.md
CHANGED
@@ -10,8 +10,8 @@ By
|
|
10 |
[Coby Tamayo](https://github.com/acobster) ([@cobytamayo](https://keybase.io/acobster)),
|
11 |
[Upstatement](https://twitter.com/upstatement) and [hundreds of other GitHub contributors](https://github.com/timber/timber/graphs/contributors)
|
12 |
|
13 |
-
[![Build Status](https://img.shields.io/travis/timber/timber/master.svg?style=flat-square)](https://travis-ci.
|
14 |
-
[![Coverage Status](https://img.shields.io/coveralls/timber/timber.svg?style=flat-square)](https://
|
15 |
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/timber/timber.svg?style=flat-square)](https://scrutinizer-ci.com/g/timber/timber/?branch=master)
|
16 |
[![Latest Stable Version](https://img.shields.io/packagist/v/timber/timber.svg?style=flat-square)](https://packagist.org/packages/timber/timber)
|
17 |
[![WordPress Download Count](https://img.shields.io/wordpress/plugin/dt/timber-library.svg?style=flat-square)](https://wordpress.org/plugins/timber-library/)
|
10 |
[Coby Tamayo](https://github.com/acobster) ([@cobytamayo](https://keybase.io/acobster)),
|
11 |
[Upstatement](https://twitter.com/upstatement) and [hundreds of other GitHub contributors](https://github.com/timber/timber/graphs/contributors)
|
12 |
|
13 |
+
[![Build Status](https://img.shields.io/travis/timber/timber/master.svg?style=flat-square)](https://travis-ci.com/github/timber/timber)
|
14 |
+
[![Coverage Status](https://img.shields.io/coveralls/timber/timber.svg?style=flat-square)](https://coveralls.io/github/timber/timber)
|
15 |
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/timber/timber.svg?style=flat-square)](https://scrutinizer-ci.com/g/timber/timber/?branch=master)
|
16 |
[![Latest Stable Version](https://img.shields.io/packagist/v/timber/timber.svg?style=flat-square)](https://packagist.org/packages/timber/timber)
|
17 |
[![WordPress Download Count](https://img.shields.io/wordpress/plugin/dt/timber-library.svg?style=flat-square)](https://wordpress.org/plugins/timber-library/)
|
lib/Helper.php
CHANGED
@@ -427,6 +427,8 @@ class Helper {
|
|
427 |
* Uses native Twig Filter.
|
428 |
*
|
429 |
* @since 1.14.0
|
|
|
|
|
430 |
* @param array $list to filter.
|
431 |
* @param callback|string|array $arrow function used for filtering,
|
432 |
* string or array for backward compatibility.
|
@@ -439,7 +441,7 @@ class Helper {
|
|
439 |
return self::wp_list_filter( $list, $arrow, $operator );
|
440 |
}
|
441 |
|
442 |
-
return
|
443 |
}
|
444 |
|
445 |
/**
|
427 |
* Uses native Twig Filter.
|
428 |
*
|
429 |
* @since 1.14.0
|
430 |
+
* @deprecated since 1.17 (to be removed in 2.0). Use array_filter or Helper::wp_list_filter instead
|
431 |
+
* @todo remove this in 2.x
|
432 |
* @param array $list to filter.
|
433 |
* @param callback|string|array $arrow function used for filtering,
|
434 |
* string or array for backward compatibility.
|
441 |
return self::wp_list_filter( $list, $arrow, $operator );
|
442 |
}
|
443 |
|
444 |
+
return array_filter( $list, $arrow, \ARRAY_FILTER_USE_BOTH );
|
445 |
}
|
446 |
|
447 |
/**
|
lib/Pagination.php
CHANGED
@@ -84,10 +84,10 @@ class Pagination {
|
|
84 |
}
|
85 |
|
86 |
// set next and prev using pages array generated by paginate links
|
87 |
-
if ( isset($current) && isset($this->pages[$current + 1]) ) {
|
88 |
$this->next = array('link' => $this->pages[$current + 1]['link'], 'class' => 'page-numbers next');
|
89 |
}
|
90 |
-
if ( isset($current) && isset($this->pages[$current - 1]) ) {
|
91 |
$this->prev = array('link' => $this->pages[$current - 1]['link'], 'class' => 'page-numbers prev');
|
92 |
}
|
93 |
if ( $paged < 2 ) {
|
@@ -114,6 +114,7 @@ class Pagination {
|
|
114 |
'prev_next' => false,
|
115 |
'prev_text' => __('« Previous'),
|
116 |
'next_text' => __('Next »'),
|
|
|
117 |
'end_size' => 1,
|
118 |
'mid_size' => 2,
|
119 |
'type' => 'array',
|
@@ -130,11 +131,12 @@ class Pagination {
|
|
130 |
return array();
|
131 |
}
|
132 |
$args['current'] = (int) $args['current'];
|
133 |
-
$args['end_size'] = 0
|
|
|
134 |
$args['mid_size'] = 0 <= (int) $args['mid_size'] ? (int) $args['mid_size'] : 2;
|
135 |
$args['add_args'] = is_array($args['add_args']) ? $args['add_args'] : false;
|
136 |
$page_links = array();
|
137 |
-
$dots =
|
138 |
for ( $n = 1; $n <= $args['total']; $n++ ) {
|
139 |
$n_display = number_format_i18n($n);
|
140 |
if ( $n == $args['current'] ) {
|
@@ -147,7 +149,7 @@ class Pagination {
|
|
147 |
);
|
148 |
$dots = true;
|
149 |
} else {
|
150 |
-
if ( $args['show_all'] || ($n <= $args['
|
151 |
|
152 |
$link = str_replace('%_%', 1 == $n ? '' : $args['format'], $args['base']);
|
153 |
$link = str_replace('%#%', $n, $link);
|
84 |
}
|
85 |
|
86 |
// set next and prev using pages array generated by paginate links
|
87 |
+
if ( isset($current) && isset($this->pages[$current + 1]) && isset($this->pages[$current + 1]['link']) ) {
|
88 |
$this->next = array('link' => $this->pages[$current + 1]['link'], 'class' => 'page-numbers next');
|
89 |
}
|
90 |
+
if ( isset($current) && isset($this->pages[$current - 1]) && isset($this->pages[$current - 1]['link']) ) {
|
91 |
$this->prev = array('link' => $this->pages[$current - 1]['link'], 'class' => 'page-numbers prev');
|
92 |
}
|
93 |
if ( $paged < 2 ) {
|
114 |
'prev_next' => false,
|
115 |
'prev_text' => __('« Previous'),
|
116 |
'next_text' => __('Next »'),
|
117 |
+
'start_size' => -1,
|
118 |
'end_size' => 1,
|
119 |
'mid_size' => 2,
|
120 |
'type' => 'array',
|
131 |
return array();
|
132 |
}
|
133 |
$args['current'] = (int) $args['current'];
|
134 |
+
$args['end_size'] = 0 <= (int) $args['end_size'] ? (int) $args['end_size'] : 1; // Out of bounds? Make it the default.
|
135 |
+
$args['start_size'] = 0 <= (int) $args['start_size'] ? (int) $args['start_size'] : $args['end_size']; // Default to end_size for backwards compat
|
136 |
$args['mid_size'] = 0 <= (int) $args['mid_size'] ? (int) $args['mid_size'] : 2;
|
137 |
$args['add_args'] = is_array($args['add_args']) ? $args['add_args'] : false;
|
138 |
$page_links = array();
|
139 |
+
$dots = true;
|
140 |
for ( $n = 1; $n <= $args['total']; $n++ ) {
|
141 |
$n_display = number_format_i18n($n);
|
142 |
if ( $n == $args['current'] ) {
|
149 |
);
|
150 |
$dots = true;
|
151 |
} else {
|
152 |
+
if ( $args['show_all'] || ($n <= $args['start_size'] || ($args['current'] && $n >= $args['current'] - $args['mid_size'] && $n <= $args['current'] + $args['mid_size']) || $n > $args['total'] - $args['end_size']) ) {
|
153 |
|
154 |
$link = str_replace('%_%', 1 == $n ? '' : $args['format'], $args['base']);
|
155 |
$link = str_replace('%#%', $n, $link);
|
lib/Timber.php
CHANGED
@@ -35,7 +35,7 @@ use Timber\Loader;
|
|
35 |
*/
|
36 |
class Timber {
|
37 |
|
38 |
-
public static $version = '1.
|
39 |
public static $locations;
|
40 |
public static $dirname = 'views';
|
41 |
public static $twig_cache = false;
|
35 |
*/
|
36 |
class Timber {
|
37 |
|
38 |
+
public static $version = '1.18.0';
|
39 |
public static $locations;
|
40 |
public static $dirname = 'views';
|
41 |
public static $twig_cache = false;
|
lib/Twig.php
CHANGED
@@ -203,7 +203,7 @@ class Twig {
|
|
203 |
|
204 |
/**
|
205 |
* @deprecated since 1.13 (to be removed in 2.0). Use Twig's native filter filter instead
|
206 |
-
|
207 |
* @ticket #1594 #2120
|
208 |
*/
|
209 |
$twig->addFilter(new Twig_Filter('filter', array('Timber\Helper', 'filter_array')));
|
203 |
|
204 |
/**
|
205 |
* @deprecated since 1.13 (to be removed in 2.0). Use Twig's native filter filter instead
|
206 |
+
* @todo remove this in 2.x so that filter merely passes to Twig's filter without any modification
|
207 |
* @ticket #1594 #2120
|
208 |
*/
|
209 |
$twig->addFilter(new Twig_Filter('filter', array('Timber\Helper', 'filter_array')));
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: jarednova
|
|
3 |
Tags: template engine, templates, twig
|
4 |
Requires at least: 4.9.8
|
5 |
Tested up to: 5.4.2
|
6 |
-
Stable tag: 1.
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -26,6 +26,10 @@ _Twig is the template language powering Timber; if you need a little background
|
|
26 |
* **[Video Tutorials](https://timber.github.io/docs/getting-started/video-tutorials/)**
|
27 |
* [Overview / Getting Started Guide](https://timber.github.io/docs/getting-started/)
|
28 |
|
|
|
|
|
|
|
|
|
29 |
== Changelog ==
|
30 |
|
31 |
= Develop (next release) =
|
@@ -34,6 +38,16 @@ _Twig is the template language powering Timber; if you need a little background
|
|
34 |
|
35 |
**Fixes and improvements**
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
= 1.17.0 =
|
38 |
|
39 |
**Changes for Theme Developers**
|
3 |
Tags: template engine, templates, twig
|
4 |
Requires at least: 4.9.8
|
5 |
Tested up to: 5.4.2
|
6 |
+
Stable tag: 1.18.0
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
26 |
* **[Video Tutorials](https://timber.github.io/docs/getting-started/video-tutorials/)**
|
27 |
* [Overview / Getting Started Guide](https://timber.github.io/docs/getting-started/)
|
28 |
|
29 |
+
### Need support?
|
30 |
+
* [StackOverflow](https://stackoverflow.com/questions/tagged/timber) is for usage questions and troubleshooting
|
31 |
+
* [GitHub issues](https://github.com/timber/timber/issues) are for reporting bugs and errors
|
32 |
+
|
33 |
== Changelog ==
|
34 |
|
35 |
= Develop (next release) =
|
38 |
|
39 |
**Fixes and improvements**
|
40 |
|
41 |
+
= 1.18.0 =
|
42 |
+
|
43 |
+
**Changes for Theme Developers**
|
44 |
+
|
45 |
+
* Improves control over pagination stops #2302 (thanks @IJMacD)
|
46 |
+
|
47 |
+
**Fixes and improvements**
|
48 |
+
|
49 |
+
* Fixes an error with array_filter and later versions of Twig
|
50 |
+
|
51 |
= 1.17.0 =
|
52 |
|
53 |
**Changes for Theme Developers**
|
timber-starter-theme/LICENSE
CHANGED
File without changes
|
timber-starter-theme/static/site.js
CHANGED
File without changes
|
timber-starter-theme/tests/test-timber-starter-theme.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
function setUp() {
|
6 |
self::_setupStarterTheme();
|
7 |
switch_theme( basename( dirname( dirname( __FILE__ ) ) ) );
|
8 |
-
require_once(__DIR__.'/../functions.php');
|
9 |
}
|
10 |
|
11 |
function tearDown() {
|
5 |
function setUp() {
|
6 |
self::_setupStarterTheme();
|
7 |
switch_theme( basename( dirname( dirname( __FILE__ ) ) ) );
|
8 |
+
require_once(__DIR__.'/../theme/functions.php');
|
9 |
}
|
10 |
|
11 |
function tearDown() {
|
timber-starter-theme/{404.php → theme/404.php}
RENAMED
File without changes
|
timber-starter-theme/{archive.php → theme/archive.php}
RENAMED
File without changes
|
timber-starter-theme/{author.php → theme/author.php}
RENAMED
File without changes
|
timber-starter-theme/{footer.php → theme/footer.php}
RENAMED
File without changes
|
timber-starter-theme/{functions.php → theme/functions.php}
RENAMED
@@ -13,7 +13,7 @@
|
|
13 |
* to load your dependencies and initialize Timber. If you are using Timber via the WordPress.org
|
14 |
* plug-in, you can safely delete this block.
|
15 |
*/
|
16 |
-
$composer_autoload = __DIR__ . '/vendor/autoload.php';
|
17 |
if ( file_exists( $composer_autoload ) ) {
|
18 |
require_once $composer_autoload;
|
19 |
$timber = new Timber\Timber();
|
@@ -35,7 +35,7 @@ if ( ! class_exists( 'Timber' ) ) {
|
|
35 |
add_filter(
|
36 |
'template_include',
|
37 |
function( $template ) {
|
38 |
-
return get_stylesheet_directory() . '/static/no-timber.html';
|
39 |
}
|
40 |
);
|
41 |
return;
|
@@ -44,7 +44,7 @@ if ( ! class_exists( 'Timber' ) ) {
|
|
44 |
/**
|
45 |
* Sets the directories (inside your theme) to find .twig files
|
46 |
*/
|
47 |
-
Timber::$dirname = array( '
|
48 |
|
49 |
/**
|
50 |
* By default, Timber does NOT autoescape values. Want to enable Twig's autoescape?
|
13 |
* to load your dependencies and initialize Timber. If you are using Timber via the WordPress.org
|
14 |
* plug-in, you can safely delete this block.
|
15 |
*/
|
16 |
+
$composer_autoload = dirname( __DIR__ ) . '/vendor/autoload.php';
|
17 |
if ( file_exists( $composer_autoload ) ) {
|
18 |
require_once $composer_autoload;
|
19 |
$timber = new Timber\Timber();
|
35 |
add_filter(
|
36 |
'template_include',
|
37 |
function( $template ) {
|
38 |
+
return dirname( get_stylesheet_directory() ) . '/static/no-timber.html';
|
39 |
}
|
40 |
);
|
41 |
return;
|
44 |
/**
|
45 |
* Sets the directories (inside your theme) to find .twig files
|
46 |
*/
|
47 |
+
Timber::$dirname = array( '../views' );
|
48 |
|
49 |
/**
|
50 |
* By default, Timber does NOT autoescape values. Want to enable Twig's autoescape?
|
timber-starter-theme/{header.php → theme/header.php}
RENAMED
File without changes
|
timber-starter-theme/{index.php → theme/index.php}
RENAMED
File without changes
|
timber-starter-theme/{page.php → theme/page.php}
RENAMED
File without changes
|
timber-starter-theme/{screenshot.png → theme/screenshot.png}
RENAMED
File without changes
|
timber-starter-theme/{search.php → theme/search.php}
RENAMED
File without changes
|
timber-starter-theme/{sidebar.php → theme/sidebar.php}
RENAMED
File without changes
|
timber-starter-theme/{single.php → theme/single.php}
RENAMED
File without changes
|
timber-starter-theme/{style.css → theme/style.css}
RENAMED
File without changes
|
timber-starter-theme/{templates → views}/404.twig
RENAMED
File without changes
|
timber-starter-theme/{templates → views}/archive.twig
RENAMED
File without changes
|
timber-starter-theme/{templates → views}/author.twig
RENAMED
File without changes
|
timber-starter-theme/{templates → views}/base.twig
RENAMED
File without changes
|
timber-starter-theme/{templates → views}/comment-form.twig
RENAMED
File without changes
|
timber-starter-theme/{templates → views}/comment.twig
RENAMED
File without changes
|
timber-starter-theme/{templates → views}/footer.twig
RENAMED
File without changes
|
timber-starter-theme/{templates → views}/html-header.twig
RENAMED
File without changes
|
timber-starter-theme/{templates → views}/index.twig
RENAMED
File without changes
|
timber-starter-theme/{templates → views}/menu.twig
RENAMED
File without changes
|
timber-starter-theme/{templates → views}/page-plugin.twig
RENAMED
File without changes
|
timber-starter-theme/{templates → views}/page.twig
RENAMED
File without changes
|
timber-starter-theme/{templates → views}/partial/pagination.twig
RENAMED
File without changes
|
timber-starter-theme/{templates → views}/search.twig
RENAMED
File without changes
|
timber-starter-theme/{templates → views}/sidebar.twig
RENAMED
File without changes
|
timber-starter-theme/{templates → views}/single-password.twig
RENAMED
File without changes
|
timber-starter-theme/{templates → views}/single.twig
RENAMED
File without changes
|
timber-starter-theme/{templates → views}/tease-post.twig
RENAMED
File without changes
|
timber-starter-theme/{templates → views}/tease.twig
RENAMED
File without changes
|
timber.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Timber
|
|
4 |
Description: The WordPress Timber Library allows you to write themes using the power of Twig templates.
|
5 |
Plugin URI: https://upstatement.com/timber
|
6 |
Author: Jared Novack + Upstatement
|
7 |
-
Version: 1.
|
8 |
Author URI: http://upstatement.com/
|
9 |
*/
|
10 |
// we look for Composer files first in the plugins dir.
|
4 |
Description: The WordPress Timber Library allows you to write themes using the power of Twig templates.
|
5 |
Plugin URI: https://upstatement.com/timber
|
6 |
Author: Jared Novack + Upstatement
|
7 |
+
Version: 1.18.0
|
8 |
Author URI: http://upstatement.com/
|
9 |
*/
|
10 |
// we look for Composer files first in the plugins dir.
|
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 ComposerAutoloaderInit6e6ec7fe550de6e5d6cd2ebfac561624::getLoader();
|
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 |
|
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit09c71e928ca77624cf6af04a8ad5b593
|
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
-
spl_autoload_register(array('
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
-
spl_autoload_unregister(array('
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
-
call_user_func(\Composer\Autoload\
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
@@ -51,19 +51,19 @@ class ComposerAutoloaderInit09c71e928ca77624cf6af04a8ad5b593
|
|
51 |
$loader->register(true);
|
52 |
|
53 |
if ($useStaticLoader) {
|
54 |
-
$includeFiles = Composer\Autoload\
|
55 |
} else {
|
56 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
57 |
}
|
58 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
59 |
-
|
60 |
}
|
61 |
|
62 |
return $loader;
|
63 |
}
|
64 |
}
|
65 |
|
66 |
-
function
|
67 |
{
|
68 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
69 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit6e6ec7fe550de6e5d6cd2ebfac561624
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
+
spl_autoload_register(array('ComposerAutoloaderInit6e6ec7fe550de6e5d6cd2ebfac561624', 'loadClassLoader'), true, true);
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit6e6ec7fe550de6e5d6cd2ebfac561624', 'loadClassLoader'));
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit6e6ec7fe550de6e5d6cd2ebfac561624::getInitializer($loader));
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
51 |
$loader->register(true);
|
52 |
|
53 |
if ($useStaticLoader) {
|
54 |
+
$includeFiles = Composer\Autoload\ComposerStaticInit6e6ec7fe550de6e5d6cd2ebfac561624::$files;
|
55 |
} else {
|
56 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
57 |
}
|
58 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
59 |
+
composerRequire6e6ec7fe550de6e5d6cd2ebfac561624($fileIdentifier, $file);
|
60 |
}
|
61 |
|
62 |
return $loader;
|
63 |
}
|
64 |
}
|
65 |
|
66 |
+
function composerRequire6e6ec7fe550de6e5d6cd2ebfac561624($fileIdentifier, $file)
|
67 |
{
|
68 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
69 |
require $file;
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
|
@@ -618,11 +618,11 @@ class ComposerStaticInit09c71e928ca77624cf6af04a8ad5b593
|
|
618 |
public static function getInitializer(ClassLoader $loader)
|
619 |
{
|
620 |
return \Closure::bind(function () use ($loader) {
|
621 |
-
$loader->prefixLengthsPsr4 =
|
622 |
-
$loader->prefixDirsPsr4 =
|
623 |
-
$loader->fallbackDirsPsr4 =
|
624 |
-
$loader->prefixesPsr0 =
|
625 |
-
$loader->classMap =
|
626 |
|
627 |
}, null, ClassLoader::class);
|
628 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit6e6ec7fe550de6e5d6cd2ebfac561624
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
|
618 |
public static function getInitializer(ClassLoader $loader)
|
619 |
{
|
620 |
return \Closure::bind(function () use ($loader) {
|
621 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit6e6ec7fe550de6e5d6cd2ebfac561624::$prefixLengthsPsr4;
|
622 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit6e6ec7fe550de6e5d6cd2ebfac561624::$prefixDirsPsr4;
|
623 |
+
$loader->fallbackDirsPsr4 = ComposerStaticInit6e6ec7fe550de6e5d6cd2ebfac561624::$fallbackDirsPsr4;
|
624 |
+
$loader->prefixesPsr0 = ComposerStaticInit6e6ec7fe550de6e5d6cd2ebfac561624::$prefixesPsr0;
|
625 |
+
$loader->classMap = ComposerStaticInit6e6ec7fe550de6e5d6cd2ebfac561624::$classMap;
|
626 |
|
627 |
}, null, ClassLoader::class);
|
628 |
}
|
vendor/composer/installed.json
CHANGED
@@ -254,8 +254,8 @@
|
|
254 |
},
|
255 |
{
|
256 |
"name": "symfony/polyfill-ctype",
|
257 |
-
"version": "v1.18.
|
258 |
-
"version_normalized": "1.18.
|
259 |
"source": {
|
260 |
"type": "git",
|
261 |
"url": "https://github.com/symfony/polyfill-ctype.git",
|
254 |
},
|
255 |
{
|
256 |
"name": "symfony/polyfill-ctype",
|
257 |
+
"version": "v1.18.1",
|
258 |
+
"version_normalized": "1.18.1.0",
|
259 |
"source": {
|
260 |
"type": "git",
|
261 |
"url": "https://github.com/symfony/polyfill-ctype.git",
|