Timber - Version 1.15.0

Version Description

Fixes and improvements - Fixed an issue where a custom field named "content" could conflict with {{ post.content }} - Fixed an issue where Timber/User::$id was returned as a string instead of an integer (thanks @rubas)

Changes for Theme Developers - Timber's data to Apache/Nginx error logs (via error_log()) is now prefixed with [ Timber ]

Download this release

Release Info

Developer jarednova
Plugin Icon 128x128 Timber
Version 1.15.0
Comparing to
See all releases

Code changes from version 1.14.0 to 1.15.0

README.md CHANGED
@@ -107,6 +107,7 @@ Timber is great for any WordPress developer who cares about writing good, mainta
107
 
108
  #### Projects that use Timber
109
  * [**Branch**](https://github.com/JeyKeu/branch/) Bootstrap 3 + Timber = Branch starter theme!
 
110
  * [**Gantry5**](https://wordpress.org/plugins/gantry5/) a framework for theme development
111
  * [**Seedling**](https://github.com/maxdmyers/seedling) A starter theme using Bootstrap 4
112
 
107
 
108
  #### Projects that use Timber
109
  * [**Branch**](https://github.com/JeyKeu/branch/) Bootstrap 3 + Timber = Branch starter theme!
110
+ * [**Flynt**](https://flyntwp.com/) a component based WordPress starter theme built on Timber and ACF Pro
111
  * [**Gantry5**](https://wordpress.org/plugins/gantry5/) a framework for theme development
112
  * [**Seedling**](https://github.com/maxdmyers/seedling) A starter theme using Bootstrap 4
113
 
lib/Helper.php CHANGED
@@ -200,7 +200,7 @@ class Helper {
200
  if ( is_object($error) || is_array($error) ) {
201
  $error = print_r($error, true);
202
  }
203
- return error_log($error);
204
  }
205
 
206
  /**
200
  if ( is_object($error) || is_array($error) ) {
201
  $error = print_r($error, true);
202
  }
203
+ return error_log('[ Timber ]'.$error);
204
  }
205
 
206
  /**
lib/Post.php CHANGED
@@ -80,9 +80,9 @@ class Post extends Core implements CoreInterface {
80
 
81
  /**
82
  * @internal
83
- * @var string $_content stores the processed content internally
84
  */
85
- protected $_content;
86
 
87
  /**
88
  * @var string $_permalink the returned permalink from WP's get_permalink function
@@ -225,7 +225,7 @@ class Post extends Core implements CoreInterface {
225
  * tries to figure out what post you want to get if not explictly defined (or if it is, allows it to be passed through)
226
  * @internal
227
  * @param mixed a value to test against
228
- * @return int the numberic id we should be using for this post object
229
  */
230
  protected function determine_id( $pid ) {
231
  global $wp_query;
@@ -646,7 +646,7 @@ class Post extends Core implements CoreInterface {
646
  * {% for post in job %}
647
  * <div class="job">
648
  * <h2>{{ post.title }}</h2>
649
- * <p>{{ post.terms('category')|join(', ') }}</p>
650
  * </div>
651
  * {% endfor %}
652
  * </section>
@@ -655,7 +655,7 @@ class Post extends Core implements CoreInterface {
655
  * <section id="job-feed">
656
  * <div class="job">
657
  * <h2>Cheese Maker</h2>
658
- * <p>Food, Cheese, Fromage</p>
659
  * </div>
660
  * <div class="job">
661
  * <h2>Mime</h2>
@@ -1210,8 +1210,8 @@ class Post extends Core implements CoreInterface {
1210
  if ( $form = $this->maybe_show_password_form() ) {
1211
  return $form;
1212
  }
1213
- if ( $len == -1 && $page == 0 && $this->_content ) {
1214
- return $this->_content;
1215
  }
1216
  $content = $this->post_content;
1217
  if ( $len > 0 ) {
@@ -1226,7 +1226,7 @@ class Post extends Core implements CoreInterface {
1226
  }
1227
  $content = apply_filters('the_content', ($content));
1228
  if ( $len == -1 && $page == 0 ) {
1229
- $this->_content = $content;
1230
  }
1231
  return $content;
1232
  }
80
 
81
  /**
82
  * @internal
83
+ * @var string $___content stores the processed content internally
84
  */
85
+ protected $___content;
86
 
87
  /**
88
  * @var string $_permalink the returned permalink from WP's get_permalink function
225
  * tries to figure out what post you want to get if not explictly defined (or if it is, allows it to be passed through)
226
  * @internal
227
  * @param mixed a value to test against
228
+ * @return int|null the numberic id we should be using for this post object, null when there's no ID (ex: 404 page)
229
  */
230
  protected function determine_id( $pid ) {
231
  global $wp_query;
646
  * {% for post in job %}
647
  * <div class="job">
648
  * <h2>{{ post.title }}</h2>
649
+ * <p>{{ post.terms( {query:{taxonomy:'category', orderby:'name', order: 'ASC'}} )|join(', ') }}</p>
650
  * </div>
651
  * {% endfor %}
652
  * </section>
655
  * <section id="job-feed">
656
  * <div class="job">
657
  * <h2>Cheese Maker</h2>
658
+ * <p>Cheese, Food, Fromage</p>
659
  * </div>
660
  * <div class="job">
661
  * <h2>Mime</h2>
1210
  if ( $form = $this->maybe_show_password_form() ) {
1211
  return $form;
1212
  }
1213
+ if ( $len == -1 && $page == 0 && $this->___content ) {
1214
+ return $this->___content;
1215
  }
1216
  $content = $this->post_content;
1217
  if ( $len > 0 ) {
1226
  }
1227
  $content = apply_filters('the_content', ($content));
1228
  if ( $len == -1 && $page == 0 ) {
1229
+ $this->___content = $content;
1230
  }
1231
  return $content;
1232
  }
lib/Timber.php CHANGED
@@ -35,7 +35,7 @@ use Timber\Loader;
35
  */
36
  class Timber {
37
 
38
- public static $version = '1.14.0';
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.15.0';
39
  public static $locations;
40
  public static $dirname = 'views';
41
  public static $twig_cache = false;
lib/User.php CHANGED
@@ -150,7 +150,7 @@ class User extends Core implements CoreInterface {
150
  }
151
  }
152
  unset($this->user_pass);
153
- $this->id = $this->ID;
154
  $this->name = $this->name();
155
  $custom = $this->get_custom();
156
  $this->import($custom);
150
  }
151
  }
152
  unset($this->user_pass);
153
+ $this->id = $this->ID = (int) $this->ID;
154
  $this->name = $this->name();
155
  $custom = $this->get_custom();
156
  $this->import($custom);
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: jarednova
3
  Tags: template engine, templates, twig
4
  Requires at least: 4.9.8
5
- Tested up to: 5.3
6
- Stable tag: 1.14.0
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -32,7 +32,17 @@ _Twig is the template language powering Timber; if you need a little background
32
 
33
  **Fixes and improvements**
34
 
 
 
 
 
 
 
 
 
 
35
  **Changes for Theme Developers**
 
36
 
37
  = 1.14.0 =
38
  **Fixes and improvements**
2
  Contributors: jarednova
3
  Tags: template engine, templates, twig
4
  Requires at least: 4.9.8
5
+ Tested up to: 5.3.2
6
+ Stable tag: 1.15.0
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
32
 
33
  **Fixes and improvements**
34
 
35
+
36
+ **Changes for Theme Developers**
37
+
38
+
39
+ = 1.15.0 =
40
+ **Fixes and improvements**
41
+ - Fixed an issue where a custom field named "content" could conflict with `{{ post.content }}`
42
+ - Fixed an issue where `Timber/User::$id` was returned as a string instead of an integer (thanks @rubas)
43
+
44
  **Changes for Theme Developers**
45
+ - Timber's data to Apache/Nginx error logs (via `error_log()`) is now prefixed with `[ Timber ]`
46
 
47
  = 1.14.0 =
48
  **Fixes and improvements**
timber.php CHANGED
@@ -2,9 +2,9 @@
2
  /*
3
  Plugin Name: Timber
4
  Description: The WordPress Timber Library allows you to write themes using the power of Twig templates.
5
- Plugin URI: http://timber.upstatement.com
6
  Author: Jared Novack + Upstatement
7
- Version: 1.14.0
8
  Author URI: http://upstatement.com/
9
  */
10
  // we look for Composer files first in the plugins dir.
2
  /*
3
  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.15.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 ComposerAutoloaderInit674010418e53f6f9593de4aedd440a23::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit4d6dc3f12a5161b3f3e9bb1c93fcb33a::getLoader();
vendor/composer/autoload_classmap.php CHANGED
@@ -72,6 +72,7 @@ return array(
72
  'Composer\\Installers\\MagentoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MagentoInstaller.php',
73
  'Composer\\Installers\\MajimaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MajimaInstaller.php',
74
  'Composer\\Installers\\MakoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MakoInstaller.php',
 
75
  'Composer\\Installers\\MauticInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MauticInstaller.php',
76
  'Composer\\Installers\\MayaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MayaInstaller.php',
77
  'Composer\\Installers\\MediaWikiInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MediaWikiInstaller.php',
@@ -103,6 +104,7 @@ return array(
103
  'Composer\\Installers\\SilverStripeInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SilverStripeInstaller.php',
104
  'Composer\\Installers\\SiteDirectInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SiteDirectInstaller.php',
105
  'Composer\\Installers\\SyDESInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SyDESInstaller.php',
 
106
  'Composer\\Installers\\Symfony1Installer' => $vendorDir . '/composer/installers/src/Composer/Installers/Symfony1Installer.php',
107
  'Composer\\Installers\\TYPO3CmsInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php',
108
  'Composer\\Installers\\TYPO3FlowInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php',
72
  'Composer\\Installers\\MagentoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MagentoInstaller.php',
73
  'Composer\\Installers\\MajimaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MajimaInstaller.php',
74
  'Composer\\Installers\\MakoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MakoInstaller.php',
75
+ 'Composer\\Installers\\MantisBTInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MantisBTInstaller.php',
76
  'Composer\\Installers\\MauticInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MauticInstaller.php',
77
  'Composer\\Installers\\MayaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MayaInstaller.php',
78
  'Composer\\Installers\\MediaWikiInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MediaWikiInstaller.php',
104
  'Composer\\Installers\\SilverStripeInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SilverStripeInstaller.php',
105
  'Composer\\Installers\\SiteDirectInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SiteDirectInstaller.php',
106
  'Composer\\Installers\\SyDESInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SyDESInstaller.php',
107
+ 'Composer\\Installers\\SyliusInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SyliusInstaller.php',
108
  'Composer\\Installers\\Symfony1Installer' => $vendorDir . '/composer/installers/src/Composer/Installers/Symfony1Installer.php',
109
  'Composer\\Installers\\TYPO3CmsInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php',
110
  'Composer\\Installers\\TYPO3FlowInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php',
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit674010418e53f6f9593de4aedd440a23
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit674010418e53f6f9593de4aedd440a23
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit674010418e53f6f9593de4aedd440a23', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit674010418e53f6f9593de4aedd440a23', '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\ComposerStaticInit674010418e53f6f9593de4aedd440a23::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
@@ -48,19 +48,19 @@ class ComposerAutoloaderInit674010418e53f6f9593de4aedd440a23
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
- $includeFiles = Composer\Autoload\ComposerStaticInit674010418e53f6f9593de4aedd440a23::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
- composerRequire674010418e53f6f9593de4aedd440a23($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
- function composerRequire674010418e53f6f9593de4aedd440a23($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit4d6dc3f12a5161b3f3e9bb1c93fcb33a
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit4d6dc3f12a5161b3f3e9bb1c93fcb33a', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit4d6dc3f12a5161b3f3e9bb1c93fcb33a', '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\ComposerStaticInit4d6dc3f12a5161b3f3e9bb1c93fcb33a::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
+ $includeFiles = Composer\Autoload\ComposerStaticInit4d6dc3f12a5161b3f3e9bb1c93fcb33a::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
+ composerRequire4d6dc3f12a5161b3f3e9bb1c93fcb33a($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
+ function composerRequire4d6dc3f12a5161b3f3e9bb1c93fcb33a($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit674010418e53f6f9593de4aedd440a23
8
  {
9
  public static $files = array (
10
  '320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
@@ -133,6 +133,7 @@ class ComposerStaticInit674010418e53f6f9593de4aedd440a23
133
  'Composer\\Installers\\MagentoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MagentoInstaller.php',
134
  'Composer\\Installers\\MajimaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MajimaInstaller.php',
135
  'Composer\\Installers\\MakoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MakoInstaller.php',
 
136
  'Composer\\Installers\\MauticInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MauticInstaller.php',
137
  'Composer\\Installers\\MayaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MayaInstaller.php',
138
  'Composer\\Installers\\MediaWikiInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MediaWikiInstaller.php',
@@ -164,6 +165,7 @@ class ComposerStaticInit674010418e53f6f9593de4aedd440a23
164
  'Composer\\Installers\\SilverStripeInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/SilverStripeInstaller.php',
165
  'Composer\\Installers\\SiteDirectInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/SiteDirectInstaller.php',
166
  'Composer\\Installers\\SyDESInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/SyDESInstaller.php',
 
167
  'Composer\\Installers\\Symfony1Installer' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Symfony1Installer.php',
168
  'Composer\\Installers\\TYPO3CmsInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php',
169
  'Composer\\Installers\\TYPO3FlowInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php',
@@ -616,11 +618,11 @@ class ComposerStaticInit674010418e53f6f9593de4aedd440a23
616
  public static function getInitializer(ClassLoader $loader)
617
  {
618
  return \Closure::bind(function () use ($loader) {
619
- $loader->prefixLengthsPsr4 = ComposerStaticInit674010418e53f6f9593de4aedd440a23::$prefixLengthsPsr4;
620
- $loader->prefixDirsPsr4 = ComposerStaticInit674010418e53f6f9593de4aedd440a23::$prefixDirsPsr4;
621
- $loader->fallbackDirsPsr4 = ComposerStaticInit674010418e53f6f9593de4aedd440a23::$fallbackDirsPsr4;
622
- $loader->prefixesPsr0 = ComposerStaticInit674010418e53f6f9593de4aedd440a23::$prefixesPsr0;
623
- $loader->classMap = ComposerStaticInit674010418e53f6f9593de4aedd440a23::$classMap;
624
 
625
  }, null, ClassLoader::class);
626
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit4d6dc3f12a5161b3f3e9bb1c93fcb33a
8
  {
9
  public static $files = array (
10
  '320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
133
  'Composer\\Installers\\MagentoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MagentoInstaller.php',
134
  'Composer\\Installers\\MajimaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MajimaInstaller.php',
135
  'Composer\\Installers\\MakoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MakoInstaller.php',
136
+ 'Composer\\Installers\\MantisBTInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MantisBTInstaller.php',
137
  'Composer\\Installers\\MauticInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MauticInstaller.php',
138
  'Composer\\Installers\\MayaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MayaInstaller.php',
139
  'Composer\\Installers\\MediaWikiInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MediaWikiInstaller.php',
165
  'Composer\\Installers\\SilverStripeInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/SilverStripeInstaller.php',
166
  'Composer\\Installers\\SiteDirectInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/SiteDirectInstaller.php',
167
  'Composer\\Installers\\SyDESInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/SyDESInstaller.php',
168
+ 'Composer\\Installers\\SyliusInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/SyliusInstaller.php',
169
  'Composer\\Installers\\Symfony1Installer' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Symfony1Installer.php',
170
  'Composer\\Installers\\TYPO3CmsInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php',
171
  'Composer\\Installers\\TYPO3FlowInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php',
618
  public static function getInitializer(ClassLoader $loader)
619
  {
620
  return \Closure::bind(function () use ($loader) {
621
+ $loader->prefixLengthsPsr4 = ComposerStaticInit4d6dc3f12a5161b3f3e9bb1c93fcb33a::$prefixLengthsPsr4;
622
+ $loader->prefixDirsPsr4 = ComposerStaticInit4d6dc3f12a5161b3f3e9bb1c93fcb33a::$prefixDirsPsr4;
623
+ $loader->fallbackDirsPsr4 = ComposerStaticInit4d6dc3f12a5161b3f3e9bb1c93fcb33a::$fallbackDirsPsr4;
624
+ $loader->prefixesPsr0 = ComposerStaticInit4d6dc3f12a5161b3f3e9bb1c93fcb33a::$prefixesPsr0;
625
+ $loader->classMap = ComposerStaticInit4d6dc3f12a5161b3f3e9bb1c93fcb33a::$classMap;
626
 
627
  }, null, ClassLoader::class);
628
  }
vendor/composer/installed.json CHANGED
@@ -115,17 +115,17 @@
115
  },
116
  {
117
  "name": "composer/installers",
118
- "version": "v1.7.0",
119
- "version_normalized": "1.7.0.0",
120
  "source": {
121
  "type": "git",
122
  "url": "https://github.com/composer/installers.git",
123
- "reference": "141b272484481432cda342727a427dc1e206bfa0"
124
  },
125
  "dist": {
126
  "type": "zip",
127
- "url": "https://api.github.com/repos/composer/installers/zipball/141b272484481432cda342727a427dc1e206bfa0",
128
- "reference": "141b272484481432cda342727a427dc1e206bfa0",
129
  "shasum": ""
130
  },
131
  "require": {
@@ -139,7 +139,7 @@
139
  "composer/composer": "1.0.*@dev",
140
  "phpunit/phpunit": "^4.8.36"
141
  },
142
- "time": "2019-08-12T15:00:31+00:00",
143
  "type": "composer-plugin",
144
  "extra": {
145
  "class": "Composer\\Installers\\Plugin",
@@ -175,6 +175,7 @@
175
  "Kanboard",
176
  "Lan Management System",
177
  "MODX Evo",
 
178
  "Mautic",
179
  "Maya",
180
  "OXID",
@@ -229,6 +230,7 @@
229
  "shopware",
230
  "silverstripe",
231
  "sydes",
 
232
  "symfony",
233
  "typo3",
234
  "wordpress",
115
  },
116
  {
117
  "name": "composer/installers",
118
+ "version": "v1.8.0",
119
+ "version_normalized": "1.8.0.0",
120
  "source": {
121
  "type": "git",
122
  "url": "https://github.com/composer/installers.git",
123
+ "reference": "7d610d50aae61ae7ed6675e58efeabdf279bb5e3"
124
  },
125
  "dist": {
126
  "type": "zip",
127
+ "url": "https://api.github.com/repos/composer/installers/zipball/7d610d50aae61ae7ed6675e58efeabdf279bb5e3",
128
+ "reference": "7d610d50aae61ae7ed6675e58efeabdf279bb5e3",
129
  "shasum": ""
130
  },
131
  "require": {
139
  "composer/composer": "1.0.*@dev",
140
  "phpunit/phpunit": "^4.8.36"
141
  },
142
+ "time": "2020-02-07T10:39:20+00:00",
143
  "type": "composer-plugin",
144
  "extra": {
145
  "class": "Composer\\Installers\\Plugin",
175
  "Kanboard",
176
  "Lan Management System",
177
  "MODX Evo",
178
+ "MantisBT",
179
  "Mautic",
180
  "Maya",
181
  "OXID",
230
  "shopware",
231
  "silverstripe",
232
  "sydes",
233
+ "sylius",
234
  "symfony",
235
  "typo3",
236
  "wordpress",
vendor/composer/installers/composer.json CHANGED
@@ -40,6 +40,7 @@
40
  "Magento",
41
  "majima",
42
  "Mako",
 
43
  "Mautic",
44
  "Maya",
45
  "MODX",
@@ -63,6 +64,7 @@
63
  "SilverStripe",
64
  "SMF",
65
  "SyDES",
 
66
  "symfony",
67
  "Thelia",
68
  "TYPO3",
40
  "Magento",
41
  "majima",
42
  "Mako",
43
+ "MantisBT",
44
  "Mautic",
45
  "Maya",
46
  "MODX",
64
  "SilverStripe",
65
  "SMF",
66
  "SyDES",
67
+ "Sylius",
68
  "symfony",
69
  "Thelia",
70
  "TYPO3",
vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php CHANGED
@@ -14,7 +14,8 @@ class DrupalInstaller extends BaseInstaller
14
  'custom-module' => 'modules/custom/{$name}/',
15
  'custom-profile' => 'profiles/custom/{$name}/',
16
  'drupal-multisite' => 'sites/{$name}/',
17
- 'console' => 'console/{$name}/',
18
  'console-language' => 'console/language/{$name}/',
 
19
  );
20
  }
14
  'custom-module' => 'modules/custom/{$name}/',
15
  'custom-profile' => 'profiles/custom/{$name}/',
16
  'drupal-multisite' => 'sites/{$name}/',
17
+ 'console' => 'console/{$name}/',
18
  'console-language' => 'console/language/{$name}/',
19
+ 'config' => 'config/sync/',
20
  );
21
  }
vendor/composer/installers/src/Composer/Installers/Installer.php CHANGED
@@ -63,6 +63,7 @@ class Installer extends LibraryInstaller
63
  'lithium' => 'LithiumInstaller',
64
  'magento' => 'MagentoInstaller',
65
  'majima' => 'MajimaInstaller',
 
66
  'mako' => 'MakoInstaller',
67
  'maya' => 'MayaInstaller',
68
  'mautic' => 'MauticInstaller',
@@ -95,6 +96,7 @@ class Installer extends LibraryInstaller
95
  'silverstripe' => 'SilverStripeInstaller',
96
  'smf' => 'SMFInstaller',
97
  'sydes' => 'SyDESInstaller',
 
98
  'symfony1' => 'Symfony1Installer',
99
  'tao' => 'TaoInstaller',
100
  'thelia' => 'TheliaInstaller',
63
  'lithium' => 'LithiumInstaller',
64
  'magento' => 'MagentoInstaller',
65
  'majima' => 'MajimaInstaller',
66
+ 'mantisbt' => 'MantisBTInstaller',
67
  'mako' => 'MakoInstaller',
68
  'maya' => 'MayaInstaller',
69
  'mautic' => 'MauticInstaller',
96
  'silverstripe' => 'SilverStripeInstaller',
97
  'smf' => 'SMFInstaller',
98
  'sydes' => 'SyDESInstaller',
99
+ 'sylius' => 'SyliusInstaller',
100
  'symfony1' => 'Symfony1Installer',
101
  'tao' => 'TaoInstaller',
102
  'thelia' => 'TheliaInstaller',
vendor/composer/installers/src/Composer/Installers/MantisBTInstaller.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace Composer\Installers;
3
+
4
+ use Composer\DependencyResolver\Pool;
5
+
6
+ class MantisBTInstaller extends BaseInstaller
7
+ {
8
+ protected $locations = array(
9
+ 'plugin' => 'plugins/{$name}/',
10
+ );
11
+
12
+ /**
13
+ * Format package name to CamelCase
14
+ */
15
+ public function inflectPackageVars($vars)
16
+ {
17
+ $vars['name'] = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name']));
18
+ $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
19
+ $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
20
+
21
+ return $vars;
22
+ }
23
+ }
vendor/composer/installers/src/Composer/Installers/SyliusInstaller.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace Composer\Installers;
3
+
4
+ class SyliusInstaller extends BaseInstaller
5
+ {
6
+ protected $locations = array(
7
+ 'theme' => 'themes/{$name}/',
8
+ );
9
+ }