Plugin Directory

Changeset 3301834


Ignore:
Timestamp:
05/27/2025 09:49:16 PM (7 months ago)
Author:
jarednova
Message:

Update to 1.23.3

Location:
timber-library/trunk
Files:
25 edited

Legend:

Unmodified
Added
Removed
  • timber-library/trunk/timber-starter-theme/.gitignore

    r3068975 r3301834  
    22/vendor/
    33/wordpress/
     4.phpunit.result.cache
  • timber-library/trunk/timber-starter-theme/404.php

    r2397504 r3301834  
    11<?php
    22/**
    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
    104 */
    115
     6namespace App;
     7
     8use Timber\Timber;
     9
    1210$context = Timber::context();
    13 Timber::render( '404.twig', $context );
     11Timber::render( 'templates/404.twig', $context );
  • timber-library/trunk/timber-starter-theme/LICENSE

    r1246020 r3301834  
    1 Copyright (c) 2012-2013 Jared Novack
     1Copyright (c) 2012-2024 Timber team
    22
    33Permission 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  
    22
    33[![Build Status](https://travis-ci.com/timber/starter-theme.svg?branch=master)](https://travis-ci.com/github/timber/starter-theme)
    4 [![Packagist Version](https://img.shields.io/packagist/v/upstatement/timber-starter-theme?include_prereleases)](https://packagist.org/packages/upstatement/timber-starter-theme)
     4[![Packagist Version](https://img.shields.io/packagist/v/timber/starter-theme?include_prereleases)](https://packagist.org/packages/timber/starter-theme)
    55
    66The "_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!
     
    2626## What else is there?
    2727
    28 - `static/` is where you can keep your static front-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.
    2929- `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.
    3030- `tests/` ... basically don’t worry about (or remove) this unless you know what it is and want to.
     
    3232## Other Resources
    3333
    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/)
    3635* [Timber and Twig Reignited My Love for WordPress](https://css-tricks.com/timber-and-twig-reignited-my-love-for-wordpress/) on CSS-Tricks
    3736* [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  
    66 * For example, puts together date-based pages if no date.php file exists.
    77 *
    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/
    159 */
    1610
    17 $templates = array( 'archive.twig', 'index.twig' );
     11namespace App;
    1812
    19 $context = Timber::context();
     13use Timber\Timber;
    2014
    21 $context['title'] = 'Archive';
     15$templates = [ 'templates/archive.twig', 'templates/index.twig' ];
     16
     17$title = 'Archive';
    2218if ( is_day() ) {
    23     $context['title'] = 'Archive: ' . get_the_date( 'D M Y' );
     19    $title = 'Archive: ' . get_the_date( 'D M Y' );
    2420} elseif ( is_month() ) {
    25     $context['title'] = 'Archive: ' . get_the_date( 'M Y' );
     21    $title = 'Archive: ' . get_the_date( 'M Y' );
    2622} elseif ( is_year() ) {
    27     $context['title'] = 'Archive: ' . get_the_date( 'Y' );
     23    $title = 'Archive: ' . get_the_date( 'Y' );
    2824} elseif ( is_tag() ) {
    29     $context['title'] = single_tag_title( '', false );
     25    $title = single_tag_title( '', false );
    3026} 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 );
    3328} 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' );
    3631}
    3732
    38 $context['posts'] = Timber::get_posts();
     33$context = Timber::context(
     34    [
     35        'title' => $title,
     36    ]
     37);
    3938
    4039Timber::render( $templates, $context );
  • timber-library/trunk/timber-starter-theme/author.php

    r3068975 r3301834  
    44 *
    55 * Methods for TimberHelper can be found in the /lib sub-directory
    6  *
    7  * @package  WordPress
    8  * @subpackage  Timber
    9  * @since    Timber 0.1
    106 */
    117
    12 global $wp_query;
     8namespace App;
    139
    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();
     10use Timber\Timber;
     11
     12$context = Timber::context();
     13
     14if ( isset( $context['author'] ) ) {
     15    $context['title'] = sprintf( __( 'Archive of %s', 'timber-starter' ), $context['author']->name() );
    2016}
    21 Timber::render( array( 'author.twig', 'archive.twig' ), $context );
     17
     18Timber::render( [ 'templates/author.twig', 'templates/archive.twig' ], $context );
  • timber-library/trunk/timber-starter-theme/functions.php

    r3068975 r3301834  
    11<?php
     2
    23/**
    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
    58 */
     9
     10namespace App;
     11
     12use Timber\Timber;
    613
    714// Load Composer dependencies.
    815require_once __DIR__ . '/vendor/autoload.php';
    916
    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' ];
     17Timber::init();
    1618
    1719new StarterSite();
  • timber-library/trunk/timber-starter-theme/index.php

    r3068975 r3301834  
    22/**
    33 * The main template file
     4 *
    45 * This is the most generic template file in a WordPress theme
    56 * and one of the two required files for a theme (the other being style.css).
    67 * 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.
    89 *
    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/
    1411 */
    1512
    16 $context          = Timber::context();
    17 $context['posts'] = Timber::get_posts();
    18 $context['foo']   = 'bar';
    19 $templates        = array( 'index.twig' );
     13use Timber\Timber;
     14
     15$templates = [ 'templates/index.twig' ];
     16
    2017if ( is_home() ) {
    21     array_unshift( $templates, 'front-page.twig', 'home.twig' );
     18    array_unshift( $templates, 'templates/front-page.twig', 'templates/home.twig' );
    2219}
     20
     21$context = Timber::context(
     22    [
     23        'foo' => 'bar',
     24    ]
     25);
     26
    2327Timber::render( $templates, $context );
  • timber-library/trunk/timber-starter-theme/page.php

    r3068975 r3301834  
    77 * and that other 'pages' on your WordPress site will use a
    88 * different template.
    9  *
    10  * To generate specific templates for your pages you can use:
    11  * /mytheme/templates/page-mypage.twig
    12  * (which will still route through this PHP file)
    13  * OR
    14  * /mytheme/page-mypage.php
    15  * (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-directory
    18  *
    19  * @package  WordPress
    20  * @subpackage  Timber
    21  * @since    Timber 0.1
    229 */
     10
     11namespace App;
     12
     13use Timber\Timber;
    2314
    2415$context = Timber::context();
    2516
    26 $timber_post     = Timber::get_post();
    27 $context['post'] = $timber_post;
    28 Timber::render( array( 'page-' . $timber_post->post_name . '.twig', 'page.twig' ), $context );
     17Timber::render( 'templates/page.twig', $context );
  • timber-library/trunk/timber-starter-theme/search.php

    r3068975 r3301834  
    33 * Search results page
    44 *
    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/
    106 */
    117
    12 $templates = array( 'search.twig', 'archive.twig', 'index.twig' );
     8use Timber\Timber;
    139
    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);
    1717
    1818Timber::render( $templates, $context );
  • timber-library/trunk/timber-starter-theme/single.php

    r2397504 r3301834  
    33 * The Template for displaying all single posts
    44 *
    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/
    106 */
    117
    12 $context         = Timber::context();
    13 $timber_post     = Timber::get_post();
    14 $context['post'] = $timber_post;
     8namespace App;
    159
    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 );
     10use Timber\Timber;
     11
     12$context   = Timber::context();
     13$post      = $context['post'];
     14$templates = [ 'templates/single-' . $post->post_type . '.twig', 'templates/single.twig' ];
     15
     16if ( post_password_required( $post->ID ) ) {
     17    $templates = 'templates/single-password.twig';
    2018}
     19
     20Timber::render( $templates, $context );
  • timber-library/trunk/timber-starter-theme/src/StarterSite.php

    r3068983 r3301834  
    11<?php
    22
     3/**
     4 * StarterSite class
     5 * This class is used to add custom functionality to the theme.
     6 */
     7
     8namespace App;
     9
    310use Timber\Site;
     11use Timber\Timber;
     12use Twig\Environment;
     13use Twig\TwigFilter;
    414
    515/**
    6  * Class StarterSite
     16 * Class StarterSite.
    717 */
    818class StarterSite extends Site {
     19
     20
     21
     22    /**
     23     * StarterSite constructor.
     24     */
    925    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' ] );
    1329
    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' ] );
    1633        add_filter( 'timber/twig/environment/options', [ $this, 'update_twig_environment_options' ] );
    1734
     
    2239     * This is where you can register custom post types.
    2340     */
    24     public function register_post_types() {
    25 
    26     }
     41    public function register_post_types() {}
    2742
    2843    /**
    2944     * This is where you can register custom taxonomies.
    3045     */
    31     public function register_taxonomies() {
    32 
    33     }
     46    public function register_taxonomies() {}
    3447
    3548    /**
    36      * This is where you add some context
     49     * This is where you add some context.
    3750     *
    38      * @param string $context context['this'] Being the Twig's {{ this }}.
     51     * @param array $context context['this'] Being the Twig's {{ this }}
    3952     */
    4053    public function add_to_context( $context ) {
     
    4255        $context['stuff'] = 'I am a value set in your functions.php file';
    4356        $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' );
    4558        $context['site']  = $this;
    4659
     
    4861    }
    4962
     63    /**
     64     * This is where you can add your theme supports.
     65     */
    5066    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
    5174        // Add default posts and comments RSS feed links to head.
    5275        add_theme_support( 'automatic-feed-links' );
     
    7396        add_theme_support(
    7497            'html5',
    75             array(
     98            [
    7699                'comment-form',
    77100                'comment-list',
    78101                'gallery',
    79102                'caption',
    80             )
     103            ]
    81104        );
    82105
     
    88111        add_theme_support(
    89112            'post-formats',
    90             array(
     113            [
    91114                'aside',
    92115                'image',
     
    96119                'gallery',
    97120                'audio',
    98             )
     121            ]
    99122        );
    100123
     
    103126
    104127    /**
    105      * his would return 'foo bar!'.
     128     * This would return 'foo bar!'.
    106129     *
    107      * @param string $text being 'foo', then returned 'foo bar!'.
     130     * @param string $text being 'foo', then returned 'foo bar!'
    108131     */
    109132    public function myfoo( $text ) {
    110133        $text .= ' bar!';
     134
    111135        return $text;
    112136    }
     
    115139     * This is where you can add your own functions to twig.
    116140     *
    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.
    118143     */
    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 ) {
    125145
    126         $twig->addFilter( new Twig\TwigFilter( 'myfoo', [ $this, 'myfoo' ] ) );
     146        $additional_filters = [
     147            'myfoo' => [
     148                'callable' => [ $this, 'myfoo' ],
     149            ],
     150        ];
    127151
    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 );
    129170    }
    130171
     
    132173     * Updates Twig environment options.
    133174     *
    134      * @link https://twig.symfony.com/doc/2.x/api.html#environment-options
     175     * @see https://twig.symfony.com/doc/2.x/api.html#environment-options
    135176     *
    136      * \@param array $options An array of environment options.
     177     * @param array $options an array of environment options
    137178     *
    138179     * @return array
    139180     */
    140     function update_twig_environment_options( $options ) {
    141         // $options['autoescape'] = true;
     181    public function update_twig_environment_options( $options ) {
     182        // $options['autoescape'] = true;
    142183
    143         return $options;
     184        return $options;
    144185    }
    145186}
  • timber-library/trunk/timber-starter-theme/style.css

    r3068975 r3301834  
    22 * Theme Name: My Timber 2.x Starter Theme
    33 * Description: Starter Theme to use with Timber
    4  * Author: Upstatement and YOU!
     4 * Author: Timber Team and You!
    55*/
  • timber-library/trunk/timber-starter-theme/tests/bootstrap.php

    r3068975 r3301834  
    33use WorDBless\Load;
    44
    5 if (! file_exists( dirname(__DIR__) . '/wordpress/wp-content')) {
     5if (! file_exists(dirname(__DIR__) . '/wordpress/wp-content')) {
    66    mkdir(dirname(__DIR__) . '/wordpress/wp-content');
    77}
     
    1212
    1313copy(
    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'
    1616);
    1717
    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;
    2121
    2222if ( is_dir($src) && ! file_exists($dest) ) {
     
    2424}
    2525
    26 require_once dirname( __DIR__ ) . '/vendor/autoload.php';
     26require_once dirname(__DIR__) . '/vendor/autoload.php';
    2727
    2828Load::load();
  • timber-library/trunk/vendor/autoload.php

    r3068974 r3301834  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit26a085621f5e52257dc941d0ca17c6b0::getLoader();
     25return ComposerAutoloaderInit10d92a83e217046482f86ca53b701ce7::getLoader();
  • timber-library/trunk/vendor/composer/autoload_real.php

    r3068974 r3301834  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit26a085621f5e52257dc941d0ca17c6b0
     5class ComposerAutoloaderInit10d92a83e217046482f86ca53b701ce7
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit26a085621f5e52257dc941d0ca17c6b0', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit10d92a83e217046482f86ca53b701ce7', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit26a085621f5e52257dc941d0ca17c6b0', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit10d92a83e217046482f86ca53b701ce7', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit26a085621f5e52257dc941d0ca17c6b0::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit10d92a83e217046482f86ca53b701ce7::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $filesToLoad = \Composer\Autoload\ComposerStaticInit26a085621f5e52257dc941d0ca17c6b0::$files;
     36        $filesToLoad = \Composer\Autoload\ComposerStaticInit10d92a83e217046482f86ca53b701ce7::$files;
    3737        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3838            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • timber-library/trunk/vendor/composer/autoload_static.php

    r3068974 r3301834  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit26a085621f5e52257dc941d0ca17c6b0
     7class ComposerStaticInit10d92a83e217046482f86ca53b701ce7
    88{
    99    public static $files = array (
     
    7575    {
    7676        return \Closure::bind(function () use ($loader) {
    77             $loader->prefixLengthsPsr4 = ComposerStaticInit26a085621f5e52257dc941d0ca17c6b0::$prefixLengthsPsr4;
    78             $loader->prefixDirsPsr4 = ComposerStaticInit26a085621f5e52257dc941d0ca17c6b0::$prefixDirsPsr4;
    79             $loader->fallbackDirsPsr4 = ComposerStaticInit26a085621f5e52257dc941d0ca17c6b0::$fallbackDirsPsr4;
    80             $loader->prefixesPsr0 = ComposerStaticInit26a085621f5e52257dc941d0ca17c6b0::$prefixesPsr0;
    81             $loader->classMap = ComposerStaticInit26a085621f5e52257dc941d0ca17c6b0::$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;
    8282
    8383        }, null, ClassLoader::class);
  • timber-library/trunk/vendor/composer/installed.json

    r3068974 r3301834  
    6666        {
    6767            "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",
    7070            "source": {
    7171                "type": "git",
    7272                "url": "https://github.com/composer/installers.git",
    73                 "reference": "c29dc4b93137acb82734f672c37e029dfbd95b35"
     73                "reference": "12fb2dfe5e16183de69e784a7b84046c43d97e8e"
    7474            },
    7575            "dist": {
    7676                "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",
    7979                "shasum": ""
    8080            },
     
    8484            },
    8585            "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": "2022-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",
    9494            "type": "composer-plugin",
    9595            "extra": {
     
    148148                "codeigniter",
    149149                "concrete5",
     150                "concreteCMS",
    150151                "croogo",
    151152                "dokuwiki",
     
    194195            "support": {
    195196                "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"
    197198            },
    198199            "funding": [
     
    214215        {
    215216            "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",
    218219            "source": {
    219220                "type": "git",
    220221                "url": "https://github.com/symfony/polyfill-ctype.git",
    221                 "reference": "ef4d7e442ca910c4764bce785146269b30cb5fc4"
     222                "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638"
    222223            },
    223224            "dist": {
    224225                "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",
    227228                "shasum": ""
    228229            },
    229230            "require": {
    230                 "php": ">=7.1"
     231                "php": ">=7.2"
    231232            },
    232233            "provide": {
     
    236237                "ext-ctype": "For best performance"
    237238            },
    238             "time": "2024-01-29T20:11:03+00:00",
     239            "time": "2024-09-09T11:45:10+00:00",
    239240            "type": "library",
    240241            "extra": {
    241242                "thanks": {
    242                     "name": "symfony/polyfill",
    243                     "url": "https://github.com/symfony/polyfill"
     243                    "url": "https://github.com/symfony/polyfill",
     244                    "name": "symfony/polyfill"
    244245                }
    245246            },
     
    276277            ],
    277278            "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"
    279280            },
    280281            "funding": [
  • timber-library/trunk/vendor/composer/installed.php

    r3068974 r3301834  
    22    'root' => array(
    33        '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',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        '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',
    2626            'type' => 'composer-plugin',
    2727            'install_path' => __DIR__ . '/./installers',
     
    3030        ),
    3131        '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',
    3535            'type' => 'library',
    3636            'install_path' => __DIR__ . '/../symfony/polyfill-ctype',
     
    3939        ),
    4040        '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',
    4444            'type' => 'library',
    4545            'install_path' => __DIR__ . '/../../',
  • timber-library/trunk/vendor/composer/installers/composer.json

    r2800950 r3301834  
    1515        "CodeIgniter",
    1616        "concrete5",
     17        "ConcreteCMS",
    1718        "Croogo",
    1819        "DokuWiki",
     
    103104    },
    104105    "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"
    111112    },
    112113    "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"
    115116    }
    116117}
  • timber-library/trunk/vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php

    r2800950 r3301834  
    4747     * Check if CakePHP version matches against a version
    4848     *
    49      * @phpstan-param Constraint::STR_OP_* $matcher
     49     * @phpstan-param '='|'=='|'<'|'<='|'>'|'>='|'<>'|'!=' $matcher
    5050     */
    5151    protected function matchesCakeVersion(string $matcher, string $version): bool
  • timber-library/trunk/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php

    r2800950 r3301834  
    2121        'console-language' => 'console/language/{$name}/',
    2222        'config'           => 'config/sync/',
     23        'recipe'           => 'recipes/{$name}',
    2324    );
    2425}
  • timber-library/trunk/vendor/composer/installers/src/Composer/Installers/Installer.php

    r2800950 r3301834  
    2727        'annotatecms'  => 'AnnotateCmsInstaller',
    2828        'bitrix'       => 'BitrixInstaller',
     29        'botble'       => 'BotbleInstaller',
    2930        'bonefish'     => 'BonefishInstaller',
    3031        'cakephp'      => 'CakePHPInstaller',
     
    3536        'codeigniter'  => 'CodeIgniterInstaller',
    3637        'concrete5'    => 'Concrete5Installer',
     38        'concretecms'  => 'ConcreteCMSInstaller',
    3739        'croogo'       => 'CroogoInstaller',
    3840        'dframe'       => 'DframeInstaller',
     
    4648        'ee2'          => 'ExpressionEngineInstaller',
    4749        'ezplatform'   => 'EzPlatformInstaller',
     50        'fork'         => 'ForkCMSInstaller',
    4851        'fuel'         => 'FuelInstaller',
    4952        'fuelphp'      => 'FuelphpInstaller',
     
    146149
    147150        $class = 'Composer\\Installers\\' . $this->supportedTypes[$frameworkType];
     151        /**
     152         * @var BaseInstaller
     153         */
    148154        $installer = new $class($package, $this->composer, $this->getIO());
    149155
     
    179185    /**
    180186     * {@inheritDoc}
     187     *
     188     * @param string $packageType
    181189     */
    182190    public function supports($packageType)
  • timber-library/trunk/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php

    r2800950 r3301834  
    2222        'cachelock'          => 'cache/locks/{$name}/',
    2323        'calendartype'       => 'calendar/type/{$name}/',
     24        'communication'      => 'communication/provider/{$name}/',
    2425        'customfield'        => 'customfield/field/{$name}/',
    2526        'fileconverter'      => 'files/converter/{$name}/',
     
    3435        'enrol'              => 'enrol/{$name}/',
    3536        'filter'             => 'filter/{$name}/',
     37        'forumreport'        => 'mod/forum/report/{$name}/',
    3638        'gradeexport'        => 'grade/export/{$name}/',
    3739        'gradeimport'        => 'grade/import/{$name}/',
    3840        'gradereport'        => 'grade/report/{$name}/',
    3941        'gradingform'        => 'grade/grading/form/{$name}/',
     42        'h5plib'             => 'h5p/h5plib/{$name}/',
    4043        'local'              => 'local/{$name}/',
    4144        'logstore'           => 'admin/tool/log/store/{$name}/',
     
    4447        'media'              => 'media/player/{$name}/',
    4548        'message'            => 'message/output/{$name}/',
     49        'mlbackend'          => 'lib/mlbackend/{$name}/',
    4650        'mnetservice'        => 'mnet/service/{$name}/',
    4751        'paygw'              => 'payment/gateway/{$name}/',
    4852        'plagiarism'         => 'plagiarism/{$name}/',
    4953        'portfolio'          => 'portfolio/{$name}/',
     54        'qbank'              => 'question/bank/{$name}/',
    5055        'qbehaviour'         => 'question/behaviour/{$name}/',
    5156        'qformat'            => 'question/format/{$name}/',
     
    5863        'search'             => 'search/engine/{$name}/',
    5964        'theme'              => 'theme/{$name}/',
     65        'tiny'               => 'lib/editor/tiny/plugins/{$name}/',
    6066        'tinymce'            => 'lib/editor/tinymce/plugins/{$name}/',
    6167        'profilefield'       => 'user/profile/field/{$name}/',
  • timber-library/trunk/vendor/symfony/polyfill-ctype/composer.json

    r3068974 r3301834  
    1717    ],
    1818    "require": {
    19         "php": ">=7.1"
     19        "php": ">=7.2"
    2020    },
    2121    "provide": {
Note: See TracChangeset for help on using the changeset viewer.