Changeset 3301834
- Timestamp:
- 05/27/2025 09:49:16 PM (7 months ago)
- Location:
- timber-library/trunk
- Files:
-
- 25 edited
-
timber-starter-theme/.gitignore (modified) (1 diff)
-
timber-starter-theme/404.php (modified) (1 diff)
-
timber-starter-theme/LICENSE (modified) (1 diff)
-
timber-starter-theme/README.md (modified) (3 diffs)
-
timber-starter-theme/archive.php (modified) (1 diff)
-
timber-starter-theme/author.php (modified) (1 diff)
-
timber-starter-theme/functions.php (modified) (1 diff)
-
timber-starter-theme/index.php (modified) (1 diff)
-
timber-starter-theme/page.php (modified) (1 diff)
-
timber-starter-theme/search.php (modified) (1 diff)
-
timber-starter-theme/single.php (modified) (1 diff)
-
timber-starter-theme/src/StarterSite.php (modified) (10 diffs)
-
timber-starter-theme/style.css (modified) (1 diff)
-
timber-starter-theme/tests/bootstrap.php (modified) (3 diffs)
-
vendor/autoload.php (modified) (1 diff)
-
vendor/composer/autoload_real.php (modified) (2 diffs)
-
vendor/composer/autoload_static.php (modified) (2 diffs)
-
vendor/composer/installed.json (modified) (7 diffs)
-
vendor/composer/installed.php (modified) (4 diffs)
-
vendor/composer/installers/composer.json (modified) (2 diffs)
-
vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php (modified) (1 diff)
-
vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php (modified) (1 diff)
-
vendor/composer/installers/src/Composer/Installers/Installer.php (modified) (5 diffs)
-
vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php (modified) (4 diffs)
-
vendor/symfony/polyfill-ctype/composer.json (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
timber-library/trunk/timber-starter-theme/.gitignore
r3068975 r3301834 2 2 /vendor/ 3 3 /wordpress/ 4 .phpunit.result.cache -
timber-library/trunk/timber-starter-theme/404.php
r2397504 r3301834 1 1 <?php 2 2 /** 3 * The template for displaying 404 pages (Not Found) 4 * 5 * Methods for TimberHelper can be found in the /functions sub-directory 6 * 7 * @package WordPress 8 * @subpackage Timber 9 * @since Timber 0.1 3 * The template for the 404 page 10 4 */ 11 5 6 namespace App; 7 8 use Timber\Timber; 9 12 10 $context = Timber::context(); 13 Timber::render( ' 404.twig', $context );11 Timber::render( 'templates/404.twig', $context ); -
timber-library/trunk/timber-starter-theme/LICENSE
r1246020 r3301834 1 Copyright (c) 2012-20 13 Jared Novack1 Copyright (c) 2012-2024 Timber team 2 2 3 3 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -
timber-library/trunk/timber-starter-theme/README.md
r3068975 r3301834 2 2 3 3 [](https://travis-ci.com/github/timber/starter-theme) 4 [](https://packagist.org/packages/upstatement/timber-starter-theme)4 [](https://packagist.org/packages/timber/starter-theme) 5 5 6 6 The "_s" for Timber: a dead-simple theme that you can build from. The primary purpose of this theme is to provide a file structure rather than a framework for markup or styles. Configure your SASS files, scripts, and task runners however you would like! … … 26 26 ## What else is there? 27 27 28 - ` static/` is where you can keep your staticfront-end scripts, styles, or images. In other words, your Sass files, JS files, fonts, and SVGs would live here.28 - `assets/` is where you can keep your front-end scripts, styles, or images. In other words, your Sass files, JS files, fonts, and SVGs would live here. 29 29 - `views/` contains all of your Twig templates. These pretty much correspond 1 to 1 with the PHP files that respond to the WordPress template hierarchy. At the end of each PHP template, you’ll notice a `Timber::render()` function whose first parameter is the Twig file where that data (or `$context`) will be used. Just an FYI. 30 30 - `tests/` ... basically don’t worry about (or remove) this unless you know what it is and want to. … … 32 32 ## Other Resources 33 33 34 * [This branch](https://github.com/laras126/timber-starter-theme/tree/tackle-box) of the starter theme has some more example code with ACF and a slightly different set up. 35 * [Twig for Timber Cheatsheet](http://notlaura.com/the-twig-for-timber-cheatsheet/) 34 * [Twig for Timber Cheatsheet](https://notlaura.com/the-twig-for-timber-cheatsheet/) 36 35 * [Timber and Twig Reignited My Love for WordPress](https://css-tricks.com/timber-and-twig-reignited-my-love-for-wordpress/) on CSS-Tricks 37 36 * [A real live Timber theme](https://github.com/laras126/yuling-theme). 38 * [Timber Video Tutorials](http://timber.github.io/timber/#video-tutorials) and [an incomplete set of screencasts](https://www.youtube.com/playlist?list=PLuIlodXmVQ6pkqWyR6mtQ5gQZ6BrnuFx-) for building a Timber theme from scratch. -
timber-library/trunk/timber-starter-theme/archive.php
r3068975 r3301834 6 6 * For example, puts together date-based pages if no date.php file exists. 7 7 * 8 * Learn more: http://codex.wordpress.org/Template_Hierarchy 9 * 10 * Methods for TimberHelper can be found in the /lib sub-directory 11 * 12 * @package WordPress 13 * @subpackage Timber 14 * @since Timber 0.2 8 * Learn more: https://developer.wordpress.org/themes/basics/template-hierarchy/ 15 9 */ 16 10 17 $templates = array( 'archive.twig', 'index.twig' );11 namespace App; 18 12 19 $context = Timber::context();13 use Timber\Timber; 20 14 21 $context['title'] = 'Archive'; 15 $templates = [ 'templates/archive.twig', 'templates/index.twig' ]; 16 17 $title = 'Archive'; 22 18 if ( is_day() ) { 23 $ context['title']= 'Archive: ' . get_the_date( 'D M Y' );19 $title = 'Archive: ' . get_the_date( 'D M Y' ); 24 20 } elseif ( is_month() ) { 25 $ context['title']= 'Archive: ' . get_the_date( 'M Y' );21 $title = 'Archive: ' . get_the_date( 'M Y' ); 26 22 } elseif ( is_year() ) { 27 $ context['title']= 'Archive: ' . get_the_date( 'Y' );23 $title = 'Archive: ' . get_the_date( 'Y' ); 28 24 } elseif ( is_tag() ) { 29 $ context['title']= single_tag_title( '', false );25 $title = single_tag_title( '', false ); 30 26 } elseif ( is_category() ) { 31 $context['title'] = single_cat_title( '', false ); 32 array_unshift( $templates, 'archive-' . get_query_var( 'cat' ) . '.twig' ); 27 $title = single_cat_title( '', false ); 33 28 } elseif ( is_post_type_archive() ) { 34 $ context['title']= post_type_archive_title( '', false );35 array_unshift( $templates, ' archive-' . get_post_type() . '.twig' );29 $title = post_type_archive_title( '', false ); 30 array_unshift( $templates, 'templates/archive-' . get_post_type() . '.twig' ); 36 31 } 37 32 38 $context['posts'] = Timber::get_posts(); 33 $context = Timber::context( 34 [ 35 'title' => $title, 36 ] 37 ); 39 38 40 39 Timber::render( $templates, $context ); -
timber-library/trunk/timber-starter-theme/author.php
r3068975 r3301834 4 4 * 5 5 * Methods for TimberHelper can be found in the /lib sub-directory 6 *7 * @package WordPress8 * @subpackage Timber9 * @since Timber 0.110 6 */ 11 7 12 global $wp_query;8 namespace App; 13 9 14 $context = Timber::context();15 $context['posts'] = Timber::get_posts(); 16 if ( isset( $wp_query->query_vars['author'] ) ) { 17 $author = Timber::get_user( $wp_query->query_vars['author'] ); 18 $context['author'] = $author; 19 $context['title'] = 'Author Archives: ' . $author->name();10 use Timber\Timber; 11 12 $context = Timber::context(); 13 14 if ( isset( $context['author'] ) ) { 15 $context['title'] = sprintf( __( 'Archive of %s', 'timber-starter' ), $context['author']->name() ); 20 16 } 21 Timber::render( array( 'author.twig', 'archive.twig' ), $context ); 17 18 Timber::render( [ 'templates/author.twig', 'templates/archive.twig' ], $context ); -
timber-library/trunk/timber-starter-theme/functions.php
r3068975 r3301834 1 1 <?php 2 2 3 /** 3 * Timber starter-theme 4 * https://github.com/timber/starter-theme 4 * Functions and definitions 5 * 6 * @link https://developer.wordpress.org/themes/basics/theme-functions/ 7 * @link https://github.com/timber/starter-theme 5 8 */ 9 10 namespace App; 11 12 use Timber\Timber; 6 13 7 14 // Load Composer dependencies. 8 15 require_once __DIR__ . '/vendor/autoload.php'; 9 16 10 require_once __DIR__ . '/src/StarterSite.php'; 11 12 Timber\Timber::init(); 13 14 // Sets the directories (inside your theme) to find .twig files. 15 Timber::$dirname = [ 'templates', 'views' ]; 17 Timber::init(); 16 18 17 19 new StarterSite(); -
timber-library/trunk/timber-starter-theme/index.php
r3068975 r3301834 2 2 /** 3 3 * The main template file 4 * 4 5 * This is the most generic template file in a WordPress theme 5 6 * and one of the two required files for a theme (the other being style.css). 6 7 * It is used to display a page when nothing more specific matches a query. 7 * E.g., it puts together the home page when no home.php file exists 8 * E.g., it puts together the home page when no home.php file exists. 8 9 * 9 * Methods for TimberHelper can be found in the /lib sub-directory 10 * 11 * @package WordPress 12 * @subpackage Timber 13 * @since Timber 0.1 10 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ 14 11 */ 15 12 16 $context = Timber::context();17 $context['posts'] = Timber::get_posts(); 18 $ context['foo'] = 'bar';19 $templates = array( 'index.twig' ); 13 use Timber\Timber; 14 15 $templates = [ 'templates/index.twig' ]; 16 20 17 if ( is_home() ) { 21 array_unshift( $templates, ' front-page.twig', 'home.twig' );18 array_unshift( $templates, 'templates/front-page.twig', 'templates/home.twig' ); 22 19 } 20 21 $context = Timber::context( 22 [ 23 'foo' => 'bar', 24 ] 25 ); 26 23 27 Timber::render( $templates, $context ); -
timber-library/trunk/timber-starter-theme/page.php
r3068975 r3301834 7 7 * and that other 'pages' on your WordPress site will use a 8 8 * different template. 9 *10 * To generate specific templates for your pages you can use:11 * /mytheme/templates/page-mypage.twig12 * (which will still route through this PHP file)13 * OR14 * /mytheme/page-mypage.php15 * (in which case you'll want to duplicate this file and save to the above path)16 *17 * Methods for TimberHelper can be found in the /lib sub-directory18 *19 * @package WordPress20 * @subpackage Timber21 * @since Timber 0.122 9 */ 10 11 namespace App; 12 13 use Timber\Timber; 23 14 24 15 $context = Timber::context(); 25 16 26 $timber_post = Timber::get_post(); 27 $context['post'] = $timber_post; 28 Timber::render( array( 'page-' . $timber_post->post_name . '.twig', 'page.twig' ), $context ); 17 Timber::render( 'templates/page.twig', $context ); -
timber-library/trunk/timber-starter-theme/search.php
r3068975 r3301834 3 3 * Search results page 4 4 * 5 * Methods for TimberHelper can be found in the /lib sub-directory 6 * 7 * @package WordPress 8 * @subpackage Timber 9 * @since Timber 0.1 5 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ 10 6 */ 11 7 12 $templates = array( 'search.twig', 'archive.twig', 'index.twig' );8 use Timber\Timber; 13 9 14 $context = Timber::context(); 15 $context['title'] = 'Search results for ' . get_search_query(); 16 $context['posts'] = Timber::get_posts(); 10 $templates = [ 'templates/search.twig', 'templates/archive.twig', 'templates/index.twig' ]; 11 12 $context = Timber::context( 13 [ 14 'title' => 'Search results for ' . get_search_query(), 15 ] 16 ); 17 17 18 18 Timber::render( $templates, $context ); -
timber-library/trunk/timber-starter-theme/single.php
r2397504 r3301834 3 3 * The Template for displaying all single posts 4 4 * 5 * Methods for TimberHelper can be found in the /lib sub-directory 6 * 7 * @package WordPress 8 * @subpackage Timber 9 * @since Timber 0.1 5 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ 10 6 */ 11 7 12 $context = Timber::context(); 13 $timber_post = Timber::get_post(); 14 $context['post'] = $timber_post; 8 namespace App; 15 9 16 if ( post_password_required( $timber_post->ID ) ) { 17 Timber::render( 'single-password.twig', $context ); 18 } else { 19 Timber::render( array( 'single-' . $timber_post->ID . '.twig', 'single-' . $timber_post->post_type . '.twig', 'single-' . $timber_post->slug . '.twig', 'single.twig' ), $context ); 10 use Timber\Timber; 11 12 $context = Timber::context(); 13 $post = $context['post']; 14 $templates = [ 'templates/single-' . $post->post_type . '.twig', 'templates/single.twig' ]; 15 16 if ( post_password_required( $post->ID ) ) { 17 $templates = 'templates/single-password.twig'; 20 18 } 19 20 Timber::render( $templates, $context ); -
timber-library/trunk/timber-starter-theme/src/StarterSite.php
r3068983 r3301834 1 1 <?php 2 2 3 /** 4 * StarterSite class 5 * This class is used to add custom functionality to the theme. 6 */ 7 8 namespace App; 9 3 10 use Timber\Site; 11 use Timber\Timber; 12 use Twig\Environment; 13 use Twig\TwigFilter; 4 14 5 15 /** 6 * Class StarterSite 16 * Class StarterSite. 7 17 */ 8 18 class StarterSite extends Site { 19 20 21 22 /** 23 * StarterSite constructor. 24 */ 9 25 public function __construct() { 10 add_action( 'after_setup_theme', array( $this, 'theme_supports' ));11 add_action( 'init', array( $this, 'register_post_types' ));12 add_action( 'init', array( $this, 'register_taxonomies' ));26 add_action( 'after_setup_theme', [ $this, 'theme_supports' ] ); 27 add_action( 'init', [ $this, 'register_post_types' ] ); 28 add_action( 'init', [ $this, 'register_taxonomies' ] ); 13 29 14 add_filter( 'timber/context', array( $this, 'add_to_context' ) ); 15 add_filter( 'timber/twig', array( $this, 'add_to_twig' ) ); 30 add_filter( 'timber/context', [ $this, 'add_to_context' ] ); 31 add_filter( 'timber/twig/filters', [ $this, 'add_filters_to_twig' ] ); 32 add_filter( 'timber/twig/functions', [ $this, 'add_functions_to_twig' ] ); 16 33 add_filter( 'timber/twig/environment/options', [ $this, 'update_twig_environment_options' ] ); 17 34 … … 22 39 * This is where you can register custom post types. 23 40 */ 24 public function register_post_types() { 25 26 } 41 public function register_post_types() {} 27 42 28 43 /** 29 44 * This is where you can register custom taxonomies. 30 45 */ 31 public function register_taxonomies() { 32 33 } 46 public function register_taxonomies() {} 34 47 35 48 /** 36 * This is where you add some context 49 * This is where you add some context. 37 50 * 38 * @param string $context context['this'] Being the Twig's {{ this }}.51 * @param array $context context['this'] Being the Twig's {{ this }} 39 52 */ 40 53 public function add_to_context( $context ) { … … 42 55 $context['stuff'] = 'I am a value set in your functions.php file'; 43 56 $context['notes'] = 'These values are available everytime you call Timber::context();'; 44 $context['menu'] = Timber::get_menu( );57 $context['menu'] = Timber::get_menu( 'primary_navigation' ); 45 58 $context['site'] = $this; 46 59 … … 48 61 } 49 62 63 /** 64 * This is where you can add your theme supports. 65 */ 50 66 public function theme_supports() { 67 // Register navigation menus 68 register_nav_menus( 69 [ 70 'primary_navigation' => _x( 'Main menu', 'Backend - menu name', 'timber-starter' ), 71 ] 72 ); 73 51 74 // Add default posts and comments RSS feed links to head. 52 75 add_theme_support( 'automatic-feed-links' ); … … 73 96 add_theme_support( 74 97 'html5', 75 array(98 [ 76 99 'comment-form', 77 100 'comment-list', 78 101 'gallery', 79 102 'caption', 80 )103 ] 81 104 ); 82 105 … … 88 111 add_theme_support( 89 112 'post-formats', 90 array(113 [ 91 114 'aside', 92 115 'image', … … 96 119 'gallery', 97 120 'audio', 98 )121 ] 99 122 ); 100 123 … … 103 126 104 127 /** 105 * his would return 'foo bar!'.128 * This would return 'foo bar!'. 106 129 * 107 * @param string $text being 'foo', then returned 'foo bar!' .130 * @param string $text being 'foo', then returned 'foo bar!' 108 131 */ 109 132 public function myfoo( $text ) { 110 133 $text .= ' bar!'; 134 111 135 return $text; 112 136 } … … 115 139 * This is where you can add your own functions to twig. 116 140 * 117 * @param Twig\Environment $twig get extension. 141 * @link https://timber.github.io/docs/v2/hooks/filters/#timber/twig/filters 142 * @param array $filters an array of Twig filters. 118 143 */ 119 public function add_to_twig( $twig ) { 120 /** 121 * Required when you want to use Twig’s template_from_string. 122 * @link https://twig.symfony.com/doc/3.x/functions/template_from_string.html 123 */ 124 // $twig->addExtension( new Twig\Extension\StringLoaderExtension() ); 144 public function add_filters_to_twig( $filters ) { 125 145 126 $twig->addFilter( new Twig\TwigFilter( 'myfoo', [ $this, 'myfoo' ] ) ); 146 $additional_filters = [ 147 'myfoo' => [ 148 'callable' => [ $this, 'myfoo' ], 149 ], 150 ]; 127 151 128 return $twig; 152 return array_merge( $filters, $additional_filters ); 153 } 154 155 156 /** 157 * This is where you can add your own functions to twig. 158 * 159 * @link https://timber.github.io/docs/v2/hooks/filters/#timber/twig/functions 160 * @param array $functions an array of existing Twig functions. 161 */ 162 public function add_functions_to_twig( $functions ) { 163 $additional_functions = [ 164 'get_theme_mod' => [ 165 'callable' => 'get_theme_mod', 166 ], 167 ]; 168 169 return array_merge( $functions, $additional_functions ); 129 170 } 130 171 … … 132 173 * Updates Twig environment options. 133 174 * 134 * @ linkhttps://twig.symfony.com/doc/2.x/api.html#environment-options175 * @see https://twig.symfony.com/doc/2.x/api.html#environment-options 135 176 * 136 * \@param array $options An array of environment options.177 * @param array $options an array of environment options 137 178 * 138 179 * @return array 139 180 */ 140 function update_twig_environment_options( $options ) {141 // $options['autoescape'] = true;181 public function update_twig_environment_options( $options ) { 182 // $options['autoescape'] = true; 142 183 143 return $options;184 return $options; 144 185 } 145 186 } -
timber-library/trunk/timber-starter-theme/style.css
r3068975 r3301834 2 2 * Theme Name: My Timber 2.x Starter Theme 3 3 * Description: Starter Theme to use with Timber 4 * Author: Upstatement and YOU!4 * Author: Timber Team and You! 5 5 */ -
timber-library/trunk/timber-starter-theme/tests/bootstrap.php
r3068975 r3301834 3 3 use WorDBless\Load; 4 4 5 if (! file_exists( dirname(__DIR__) . '/wordpress/wp-content')) {5 if (! file_exists(dirname(__DIR__) . '/wordpress/wp-content')) { 6 6 mkdir(dirname(__DIR__) . '/wordpress/wp-content'); 7 7 } … … 12 12 13 13 copy( 14 dirname( __DIR__) . '/vendor/automattic/wordbless/src/dbless-wpdb.php',15 dirname( __DIR__) . '/wordpress/wp-content/db.php'14 dirname(__DIR__) . '/vendor/automattic/wordbless/src/dbless-wpdb.php', 15 dirname(__DIR__) . '/wordpress/wp-content/db.php' 16 16 ); 17 17 18 $theme_base_name = basename( dirname( __DIR__ ));19 $src = realpath( dirname( dirname( __DIR__ ) ) . '/' . $theme_base_name);20 $dest = dirname( __DIR__) . '/wordpress/wp-content/themes/' . $theme_base_name;18 $theme_base_name = basename(dirname(__DIR__)); 19 $src = realpath(dirname(dirname(__DIR__)) . '/' . $theme_base_name); 20 $dest = dirname(__DIR__) . '/wordpress/wp-content/themes/' . $theme_base_name; 21 21 22 22 if ( is_dir($src) && ! file_exists($dest) ) { … … 24 24 } 25 25 26 require_once dirname( __DIR__) . '/vendor/autoload.php';26 require_once dirname(__DIR__) . '/vendor/autoload.php'; 27 27 28 28 Load::load(); -
timber-library/trunk/vendor/autoload.php
r3068974 r3301834 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 26a085621f5e52257dc941d0ca17c6b0::getLoader();25 return ComposerAutoloaderInit10d92a83e217046482f86ca53b701ce7::getLoader(); -
timber-library/trunk/vendor/composer/autoload_real.php
r3068974 r3301834 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 26a085621f5e52257dc941d0ca17c6b05 class ComposerAutoloaderInit10d92a83e217046482f86ca53b701ce7 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 26a085621f5e52257dc941d0ca17c6b0', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit10d92a83e217046482f86ca53b701ce7', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 26a085621f5e52257dc941d0ca17c6b0', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit10d92a83e217046482f86ca53b701ce7', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 26a085621f5e52257dc941d0ca17c6b0::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInit10d92a83e217046482f86ca53b701ce7::getInitializer($loader)); 33 33 34 34 $loader->register(true); 35 35 36 $filesToLoad = \Composer\Autoload\ComposerStaticInit 26a085621f5e52257dc941d0ca17c6b0::$files;36 $filesToLoad = \Composer\Autoload\ComposerStaticInit10d92a83e217046482f86ca53b701ce7::$files; 37 37 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { 38 38 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
timber-library/trunk/vendor/composer/autoload_static.php
r3068974 r3301834 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 26a085621f5e52257dc941d0ca17c6b07 class ComposerStaticInit10d92a83e217046482f86ca53b701ce7 8 8 { 9 9 public static $files = array ( … … 75 75 { 76 76 return \Closure::bind(function () use ($loader) { 77 $loader->prefixLengthsPsr4 = ComposerStaticInit 26a085621f5e52257dc941d0ca17c6b0::$prefixLengthsPsr4;78 $loader->prefixDirsPsr4 = ComposerStaticInit 26a085621f5e52257dc941d0ca17c6b0::$prefixDirsPsr4;79 $loader->fallbackDirsPsr4 = ComposerStaticInit 26a085621f5e52257dc941d0ca17c6b0::$fallbackDirsPsr4;80 $loader->prefixesPsr0 = ComposerStaticInit 26a085621f5e52257dc941d0ca17c6b0::$prefixesPsr0;81 $loader->classMap = ComposerStaticInit 26a085621f5e52257dc941d0ca17c6b0::$classMap;77 $loader->prefixLengthsPsr4 = ComposerStaticInit10d92a83e217046482f86ca53b701ce7::$prefixLengthsPsr4; 78 $loader->prefixDirsPsr4 = ComposerStaticInit10d92a83e217046482f86ca53b701ce7::$prefixDirsPsr4; 79 $loader->fallbackDirsPsr4 = ComposerStaticInit10d92a83e217046482f86ca53b701ce7::$fallbackDirsPsr4; 80 $loader->prefixesPsr0 = ComposerStaticInit10d92a83e217046482f86ca53b701ce7::$prefixesPsr0; 81 $loader->classMap = ComposerStaticInit10d92a83e217046482f86ca53b701ce7::$classMap; 82 82 83 83 }, null, ClassLoader::class); -
timber-library/trunk/vendor/composer/installed.json
r3068974 r3301834 66 66 { 67 67 "name": "composer/installers", 68 "version": "v2. 2.0",69 "version_normalized": "2. 2.0.0",68 "version": "v2.3.0", 69 "version_normalized": "2.3.0.0", 70 70 "source": { 71 71 "type": "git", 72 72 "url": "https://github.com/composer/installers.git", 73 "reference": " c29dc4b93137acb82734f672c37e029dfbd95b35"73 "reference": "12fb2dfe5e16183de69e784a7b84046c43d97e8e" 74 74 }, 75 75 "dist": { 76 76 "type": "zip", 77 "url": "https://api.github.com/repos/composer/installers/zipball/ c29dc4b93137acb82734f672c37e029dfbd95b35",78 "reference": " c29dc4b93137acb82734f672c37e029dfbd95b35",77 "url": "https://api.github.com/repos/composer/installers/zipball/12fb2dfe5e16183de69e784a7b84046c43d97e8e", 78 "reference": "12fb2dfe5e16183de69e784a7b84046c43d97e8e", 79 79 "shasum": "" 80 80 }, … … 84 84 }, 85 85 "require-dev": { 86 "composer/composer": " 1.6.* || ^2.0",87 "composer/semver": "^1 || ^3",88 "phpstan/phpstan": "^ 0.12.55",89 "phpstan/phpstan-phpunit": "^ 0.12.16",90 "symfony/phpunit-bridge": "^ 5.3",91 "symfony/process": "^5 "92 }, 93 "time": "202 2-08-20T06:45:11+00:00",86 "composer/composer": "^1.10.27 || ^2.7", 87 "composer/semver": "^1.7.2 || ^3.4.0", 88 "phpstan/phpstan": "^1.11", 89 "phpstan/phpstan-phpunit": "^1", 90 "symfony/phpunit-bridge": "^7.1.1", 91 "symfony/process": "^5 || ^6 || ^7" 92 }, 93 "time": "2024-06-24T20:46:46+00:00", 94 94 "type": "composer-plugin", 95 95 "extra": { … … 148 148 "codeigniter", 149 149 "concrete5", 150 "concreteCMS", 150 151 "croogo", 151 152 "dokuwiki", … … 194 195 "support": { 195 196 "issues": "https://github.com/composer/installers/issues", 196 "source": "https://github.com/composer/installers/tree/v2. 2.0"197 "source": "https://github.com/composer/installers/tree/v2.3.0" 197 198 }, 198 199 "funding": [ … … 214 215 { 215 216 "name": "symfony/polyfill-ctype", 216 "version": "v1. 29.0",217 "version_normalized": "1. 29.0.0",217 "version": "v1.32.0", 218 "version_normalized": "1.32.0.0", 218 219 "source": { 219 220 "type": "git", 220 221 "url": "https://github.com/symfony/polyfill-ctype.git", 221 "reference": " ef4d7e442ca910c4764bce785146269b30cb5fc4"222 "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638" 222 223 }, 223 224 "dist": { 224 225 "type": "zip", 225 "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/ ef4d7e442ca910c4764bce785146269b30cb5fc4",226 "reference": " ef4d7e442ca910c4764bce785146269b30cb5fc4",226 "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/a3cc8b044a6ea513310cbd48ef7333b384945638", 227 "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638", 227 228 "shasum": "" 228 229 }, 229 230 "require": { 230 "php": ">=7. 1"231 "php": ">=7.2" 231 232 }, 232 233 "provide": { … … 236 237 "ext-ctype": "For best performance" 237 238 }, 238 "time": "2024-0 1-29T20:11:03+00:00",239 "time": "2024-09-09T11:45:10+00:00", 239 240 "type": "library", 240 241 "extra": { 241 242 "thanks": { 242 " name": "symfony/polyfill",243 " url": "https://github.com/symfony/polyfill"243 "url": "https://github.com/symfony/polyfill", 244 "name": "symfony/polyfill" 244 245 } 245 246 }, … … 276 277 ], 277 278 "support": { 278 "source": "https://github.com/symfony/polyfill-ctype/tree/v1. 29.0"279 "source": "https://github.com/symfony/polyfill-ctype/tree/v1.32.0" 279 280 }, 280 281 "funding": [ -
timber-library/trunk/vendor/composer/installed.php
r3068974 r3301834 2 2 'root' => array( 3 3 'name' => 'timber/timber', 4 'pretty_version' => ' 1.23.1.x-dev',5 'version' => ' 1.23.1.9999999-dev',6 'reference' => ' 308999f0d51e64104ed72017b1c589f17187e1ee',4 'pretty_version' => 'dev-master', 5 'version' => 'dev-master', 6 'reference' => '64ff9bc5c85898024a7ad5d8f64419fe277dd5a2', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 21 21 ), 22 22 'composer/installers' => array( 23 'pretty_version' => 'v2. 2.0',24 'version' => '2. 2.0.0',25 'reference' => ' c29dc4b93137acb82734f672c37e029dfbd95b35',23 'pretty_version' => 'v2.3.0', 24 'version' => '2.3.0.0', 25 'reference' => '12fb2dfe5e16183de69e784a7b84046c43d97e8e', 26 26 'type' => 'composer-plugin', 27 27 'install_path' => __DIR__ . '/./installers', … … 30 30 ), 31 31 'symfony/polyfill-ctype' => array( 32 'pretty_version' => 'v1. 29.0',33 'version' => '1. 29.0.0',34 'reference' => ' ef4d7e442ca910c4764bce785146269b30cb5fc4',32 'pretty_version' => 'v1.32.0', 33 'version' => '1.32.0.0', 34 'reference' => 'a3cc8b044a6ea513310cbd48ef7333b384945638', 35 35 'type' => 'library', 36 36 'install_path' => __DIR__ . '/../symfony/polyfill-ctype', … … 39 39 ), 40 40 'timber/timber' => array( 41 'pretty_version' => ' 1.23.1.x-dev',42 'version' => ' 1.23.1.9999999-dev',43 'reference' => ' 308999f0d51e64104ed72017b1c589f17187e1ee',41 'pretty_version' => 'dev-master', 42 'version' => 'dev-master', 43 'reference' => '64ff9bc5c85898024a7ad5d8f64419fe277dd5a2', 44 44 'type' => 'library', 45 45 'install_path' => __DIR__ . '/../../', -
timber-library/trunk/vendor/composer/installers/composer.json
r2800950 r3301834 15 15 "CodeIgniter", 16 16 "concrete5", 17 "ConcreteCMS", 17 18 "Croogo", 18 19 "DokuWiki", … … 103 104 }, 104 105 "require-dev": { 105 "composer/composer": " 1.6.* || ^2.0",106 "composer/semver": "^1 || ^3",107 "symfony/phpunit-bridge": "^ 5.3",108 "phpstan/phpstan": "^ 0.12.55",109 "symfony/process": "^5 ",110 "phpstan/phpstan-phpunit": "^ 0.12.16"106 "composer/composer": "^1.10.27 || ^2.7", 107 "composer/semver": "^1.7.2 || ^3.4.0", 108 "symfony/phpunit-bridge": "^7.1.1", 109 "phpstan/phpstan": "^1.11", 110 "symfony/process": "^5 || ^6 || ^7", 111 "phpstan/phpstan-phpunit": "^1" 111 112 }, 112 113 "scripts": { 113 "test": " vendor/bin/simple-phpunit",114 "phpstan": " vendor/bin/phpstan analyse"114 "test": "@php vendor/bin/simple-phpunit", 115 "phpstan": "@php vendor/bin/phpstan analyse" 115 116 } 116 117 } -
timber-library/trunk/vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php
r2800950 r3301834 47 47 * Check if CakePHP version matches against a version 48 48 * 49 * @phpstan-param Constraint::STR_OP_*$matcher49 * @phpstan-param '='|'=='|'<'|'<='|'>'|'>='|'<>'|'!=' $matcher 50 50 */ 51 51 protected function matchesCakeVersion(string $matcher, string $version): bool -
timber-library/trunk/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php
r2800950 r3301834 21 21 'console-language' => 'console/language/{$name}/', 22 22 'config' => 'config/sync/', 23 'recipe' => 'recipes/{$name}', 23 24 ); 24 25 } -
timber-library/trunk/vendor/composer/installers/src/Composer/Installers/Installer.php
r2800950 r3301834 27 27 'annotatecms' => 'AnnotateCmsInstaller', 28 28 'bitrix' => 'BitrixInstaller', 29 'botble' => 'BotbleInstaller', 29 30 'bonefish' => 'BonefishInstaller', 30 31 'cakephp' => 'CakePHPInstaller', … … 35 36 'codeigniter' => 'CodeIgniterInstaller', 36 37 'concrete5' => 'Concrete5Installer', 38 'concretecms' => 'ConcreteCMSInstaller', 37 39 'croogo' => 'CroogoInstaller', 38 40 'dframe' => 'DframeInstaller', … … 46 48 'ee2' => 'ExpressionEngineInstaller', 47 49 'ezplatform' => 'EzPlatformInstaller', 50 'fork' => 'ForkCMSInstaller', 48 51 'fuel' => 'FuelInstaller', 49 52 'fuelphp' => 'FuelphpInstaller', … … 146 149 147 150 $class = 'Composer\\Installers\\' . $this->supportedTypes[$frameworkType]; 151 /** 152 * @var BaseInstaller 153 */ 148 154 $installer = new $class($package, $this->composer, $this->getIO()); 149 155 … … 179 185 /** 180 186 * {@inheritDoc} 187 * 188 * @param string $packageType 181 189 */ 182 190 public function supports($packageType) -
timber-library/trunk/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php
r2800950 r3301834 22 22 'cachelock' => 'cache/locks/{$name}/', 23 23 'calendartype' => 'calendar/type/{$name}/', 24 'communication' => 'communication/provider/{$name}/', 24 25 'customfield' => 'customfield/field/{$name}/', 25 26 'fileconverter' => 'files/converter/{$name}/', … … 34 35 'enrol' => 'enrol/{$name}/', 35 36 'filter' => 'filter/{$name}/', 37 'forumreport' => 'mod/forum/report/{$name}/', 36 38 'gradeexport' => 'grade/export/{$name}/', 37 39 'gradeimport' => 'grade/import/{$name}/', 38 40 'gradereport' => 'grade/report/{$name}/', 39 41 'gradingform' => 'grade/grading/form/{$name}/', 42 'h5plib' => 'h5p/h5plib/{$name}/', 40 43 'local' => 'local/{$name}/', 41 44 'logstore' => 'admin/tool/log/store/{$name}/', … … 44 47 'media' => 'media/player/{$name}/', 45 48 'message' => 'message/output/{$name}/', 49 'mlbackend' => 'lib/mlbackend/{$name}/', 46 50 'mnetservice' => 'mnet/service/{$name}/', 47 51 'paygw' => 'payment/gateway/{$name}/', 48 52 'plagiarism' => 'plagiarism/{$name}/', 49 53 'portfolio' => 'portfolio/{$name}/', 54 'qbank' => 'question/bank/{$name}/', 50 55 'qbehaviour' => 'question/behaviour/{$name}/', 51 56 'qformat' => 'question/format/{$name}/', … … 58 63 'search' => 'search/engine/{$name}/', 59 64 'theme' => 'theme/{$name}/', 65 'tiny' => 'lib/editor/tiny/plugins/{$name}/', 60 66 'tinymce' => 'lib/editor/tinymce/plugins/{$name}/', 61 67 'profilefield' => 'user/profile/field/{$name}/', -
timber-library/trunk/vendor/symfony/polyfill-ctype/composer.json
r3068974 r3301834 17 17 ], 18 18 "require": { 19 "php": ">=7. 1"19 "php": ">=7.2" 20 20 }, 21 21 "provide": {
Note: See TracChangeset
for help on using the changeset viewer.