From 8c290546fb7900d517d2b6f368dfb68a354837a0 Mon Sep 17 00:00:00 2001 From: Toni Suomalainen Date: Thu, 9 Aug 2018 11:31:15 +0300 Subject: [PATCH] changed timber-plugin for timber-packages --- CHANGELOG.md | 5 + README.md | 1 - app/bootstrap.php | 3 + composer.json | 4 +- composer.lock | 428 ++++++++++++++++++++++++++++++++++++++++------ no-timber.html | 15 -- 6 files changed, 385 insertions(+), 71 deletions(-) delete mode 100644 no-timber.html diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b5d561..2f31872 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## **v1.8.2 (2018-08-09)** + +### Changed +* Timber will be added via composer instead of wordpress plugin + ## **v1.8.0 (2018-07-27)** ### Added diff --git a/README.md b/README.md index 027cd72..3b19121 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,6 @@ * `yarn` **or** `npm install` * define your custom webpack config to `build/config.js` file * `yarn watch` **or** `npm run watch` -* Remember to activate Timber plugin! * Happy developing :) ## Structure diff --git a/app/bootstrap.php b/app/bootstrap.php index c37d995..30066bf 100644 --- a/app/bootstrap.php +++ b/app/bootstrap.php @@ -3,6 +3,9 @@ // Load all composer packages require_once __DIR__ . '/../vendor/autoload.php'; +// Init Timber +$timber = new \Timber\Timber(); + // Init Dotenv $dotenv = new Dotenv\Dotenv(__DIR__ . '/..'); $dotenv->load(); diff --git a/composer.json b/composer.json index 1771064..bfd1a1a 100644 --- a/composer.json +++ b/composer.json @@ -32,13 +32,13 @@ }, "require": { "php": "^7.0", - "wpackagist-plugin/timber-library": "1.7.1", "symfony/var-dumper": "^4.1", "symfony/console": "^4.1", "league/flysystem": "^1.0", "symfony/finder": "^4.1", "vlucas/phpdotenv": "^2.4", - "suomato/luna": "^1.3" + "suomato/luna": "^1.3", + "timber/timber": "^1.7" }, "autoload": { "files": ["app/helpers.php", "resources/languages/messages.php"], diff --git a/composer.lock b/composer.lock index c77d1b6..5b78168 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,113 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "05a09d43287135f804c9e14d9275b4f4", + "content-hash": "0969fe17a1399d04d121a8515528d9e9", "packages": [ + { + "name": "altorouter/altorouter", + "version": "v1.1.0", + "source": { + "type": "git", + "url": "https://github.com/dannyvankooten/AltoRouter.git", + "reference": "09d9d946c546bae6d22a7654cdb3b825ffda54b4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dannyvankooten/AltoRouter/zipball/09d9d946c546bae6d22a7654cdb3b825ffda54b4", + "reference": "09d9d946c546bae6d22a7654cdb3b825ffda54b4", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "AltoRouter.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Danny van Kooten", + "email": "dannyvankooten@gmail.com", + "homepage": "http://dannyvankooten.com/" + }, + { + "name": "Koen Punt", + "homepage": "https://github.com/koenpunt" + }, + { + "name": "niahoo", + "homepage": "https://github.com/niahoo" + } + ], + "description": "A lightning fast router for PHP", + "homepage": "https://github.com/dannyvankooten/AltoRouter", + "keywords": [ + "lightweight", + "router", + "routing" + ], + "time": "2014-04-16T09:44:40+00:00" + }, + { + "name": "asm89/twig-cache-extension", + "version": "1.3.2", + "source": { + "type": "git", + "url": "https://github.com/asm89/twig-cache-extension.git", + "reference": "630ea7abdc3fc62ba6786c02590a1560e449cf55" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/asm89/twig-cache-extension/zipball/630ea7abdc3fc62ba6786c02590a1560e449cf55", + "reference": "630ea7abdc3fc62ba6786c02590a1560e449cf55", + "shasum": "" + }, + "require": { + "php": ">=5.3.2", + "twig/twig": "^1.0|^2.0" + }, + "require-dev": { + "doctrine/cache": "~1.0" + }, + "suggest": { + "psr/cache-implementation": "To make use of PSR-6 cache implementation via PsrCacheAdapter." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3-dev" + } + }, + "autoload": { + "psr-4": { + "": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Alexander", + "email": "iam.asm89@gmail.com" + } + ], + "description": "Cache fragments of templates directly within Twig.", + "homepage": "https://github.com/asm89/twig-cache-extension", + "keywords": [ + "cache", + "extension", + "twig" + ], + "time": "2017-01-10T22:04:15+00:00" + }, { "name": "composer/installers", "version": "v1.5.0", @@ -253,16 +358,16 @@ }, { "name": "symfony/console", - "version": "v4.1.2", + "version": "v4.1.3", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "5c31f6a97c1c240707f6d786e7e59bfacdbc0219" + "reference": "ca80b8ced97cf07390078b29773dc384c39eee1f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/5c31f6a97c1c240707f6d786e7e59bfacdbc0219", - "reference": "5c31f6a97c1c240707f6d786e7e59bfacdbc0219", + "url": "https://api.github.com/repos/symfony/console/zipball/ca80b8ced97cf07390078b29773dc384c39eee1f", + "reference": "ca80b8ced97cf07390078b29773dc384c39eee1f", "shasum": "" }, "require": { @@ -317,20 +422,20 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2018-07-16T14:05:40+00:00" + "time": "2018-07-26T11:24:31+00:00" }, { "name": "symfony/finder", - "version": "v4.1.2", + "version": "v4.1.3", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "84714b8417d19e4ba02ea78a41a975b3efaafddb" + "reference": "e162f1df3102d0b7472805a5a9d5db9fcf0a8068" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/84714b8417d19e4ba02ea78a41a975b3efaafddb", - "reference": "84714b8417d19e4ba02ea78a41a975b3efaafddb", + "url": "https://api.github.com/repos/symfony/finder/zipball/e162f1df3102d0b7472805a5a9d5db9fcf0a8068", + "reference": "e162f1df3102d0b7472805a5a9d5db9fcf0a8068", "shasum": "" }, "require": { @@ -366,20 +471,78 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", - "time": "2018-06-19T21:38:16+00:00" + "time": "2018-07-26T11:24:31+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.9.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "e3d826245268269cd66f8326bd8bc066687b4a19" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e3d826245268269cd66f8326bd8bc066687b4a19", + "reference": "e3d826245268269cd66f8326bd8bc066687b4a19", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.9-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + }, + { + "name": "Gert de Pagter", + "email": "BackEndTea@gmail.com" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "time": "2018-08-06T14:22:27+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.8.0", + "version": "v1.9.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "3296adf6a6454a050679cde90f95350ad604b171" + "reference": "d0cd638f4634c16d8df4508e847f14e9e43168b8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/3296adf6a6454a050679cde90f95350ad604b171", - "reference": "3296adf6a6454a050679cde90f95350ad604b171", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/d0cd638f4634c16d8df4508e847f14e9e43168b8", + "reference": "d0cd638f4634c16d8df4508e847f14e9e43168b8", "shasum": "" }, "require": { @@ -391,7 +554,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.8-dev" + "dev-master": "1.9-dev" } }, "autoload": { @@ -425,20 +588,20 @@ "portable", "shim" ], - "time": "2018-04-26T10:06:28+00:00" + "time": "2018-08-06T14:22:27+00:00" }, { "name": "symfony/polyfill-php72", - "version": "v1.8.0", + "version": "v1.9.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php72.git", - "reference": "a4576e282d782ad82397f3e4ec1df8e0f0cafb46" + "reference": "95c50420b0baed23852452a7f0c7b527303ed5ae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/a4576e282d782ad82397f3e4ec1df8e0f0cafb46", - "reference": "a4576e282d782ad82397f3e4ec1df8e0f0cafb46", + "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/95c50420b0baed23852452a7f0c7b527303ed5ae", + "reference": "95c50420b0baed23852452a7f0c7b527303ed5ae", "shasum": "" }, "require": { @@ -447,7 +610,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.8-dev" + "dev-master": "1.9-dev" } }, "autoload": { @@ -480,20 +643,20 @@ "portable", "shim" ], - "time": "2018-04-26T10:06:28+00:00" + "time": "2018-08-06T14:22:27+00:00" }, { "name": "symfony/var-dumper", - "version": "v4.1.2", + "version": "v4.1.3", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "9f882aed43f364de1d43038e8fb39703c577afc1" + "reference": "69e174f4c02ec43919380171c6f7550753299316" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/9f882aed43f364de1d43038e8fb39703c577afc1", - "reference": "9f882aed43f364de1d43038e8fb39703c577afc1", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/69e174f4c02ec43919380171c6f7550753299316", + "reference": "69e174f4c02ec43919380171c6f7550753299316", "shasum": "" }, "require": { @@ -555,20 +718,199 @@ "debug", "dump" ], - "time": "2018-07-05T11:54:23+00:00" + "time": "2018-07-26T11:24:31+00:00" }, { - "name": "vlucas/phpdotenv", + "name": "timber/timber", + "version": "1.7.1", + "source": { + "type": "git", + "url": "https://github.com/timber/timber.git", + "reference": "a6a553d70b58d9e1f7c612511b72be60b0e98248" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/timber/timber/zipball/a6a553d70b58d9e1f7c612511b72be60b0e98248", + "reference": "a6a553d70b58d9e1f7c612511b72be60b0e98248", + "shasum": "" + }, + "require": { + "asm89/twig-cache-extension": "~1.0", + "composer/installers": "~1.0", + "php": ">=5.3.0|7.*", + "twig/twig": "1.34.*|2.*", + "upstatement/routes": "0.4" + }, + "require-dev": { + "phpunit/phpunit": "5.7.16", + "wpackagist-plugin/advanced-custom-fields": "4.4.*", + "wpackagist-plugin/co-authors-plus": "3.2.*" + }, + "suggest": { + "satooshi/php-coveralls": "1.0.* for code coverage" + }, + "type": "library", + "autoload": { + "psr-4": { + "Timber\\": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jared Novack", + "email": "jared@upstatement.com", + "homepage": "http://upstatement.com" + }, + { + "name": "Connor J. Burton", + "email": "connorjburton@gmail.com", + "homepage": "http://connorburton.com" + } + ], + "description": "Plugin to write WordPress themes w Object-Oriented Code and the Twig Template Engine", + "homepage": "http://timber.upstatement.com", + "keywords": [ + "templating", + "themes", + "timber", + "twig" + ], + "time": "2018-05-21T15:00:50+00:00" + }, + { + "name": "twig/twig", "version": "v2.5.0", + "source": { + "type": "git", + "url": "https://github.com/twigphp/Twig.git", + "reference": "6a5f676b77a90823c2d4eaf76137b771adf31323" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/6a5f676b77a90823c2d4eaf76137b771adf31323", + "reference": "6a5f676b77a90823c2d4eaf76137b771adf31323", + "shasum": "" + }, + "require": { + "php": "^7.0", + "symfony/polyfill-ctype": "^1.8", + "symfony/polyfill-mbstring": "~1.0" + }, + "require-dev": { + "psr/container": "^1.0", + "symfony/debug": "^2.7", + "symfony/phpunit-bridge": "^3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.5-dev" + } + }, + "autoload": { + "psr-0": { + "Twig_": "lib/" + }, + "psr-4": { + "Twig\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com", + "homepage": "http://fabien.potencier.org", + "role": "Lead Developer" + }, + { + "name": "Armin Ronacher", + "email": "armin.ronacher@active-4.com", + "role": "Project Founder" + }, + { + "name": "Twig Team", + "homepage": "https://twig.symfony.com/contributors", + "role": "Contributors" + } + ], + "description": "Twig, the flexible, fast, and secure template language for PHP", + "homepage": "https://twig.symfony.com", + "keywords": [ + "templating" + ], + "time": "2018-07-13T07:18:09+00:00" + }, + { + "name": "upstatement/routes", + "version": "0.4", + "source": { + "type": "git", + "url": "https://github.com/Upstatement/routes.git", + "reference": "fae7d46f56e8b5775f072774941a5f0a25cb86f3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Upstatement/routes/zipball/fae7d46f56e8b5775f072774941a5f0a25cb86f3", + "reference": "fae7d46f56e8b5775f072774941a5f0a25cb86f3", + "shasum": "" + }, + "require": { + "altorouter/altorouter": "1.1.0", + "composer/installers": "~1.0", + "php": ">=5.3.0" + }, + "require-dev": { + "phpunit/phpunit": "3.7.*", + "satooshi/php-coveralls": "dev-master", + "wp-cli/wp-cli": "*" + }, + "type": "library", + "autoload": { + "psr-0": { + "Routes": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jared Novack", + "email": "jared@upstatement.com", + "homepage": "http://upstatement.com" + } + ], + "description": "Manage rewrites and routes in WordPress with this dead-simple plugin", + "homepage": "http://routes.upstatement.com", + "keywords": [ + "redirects", + "rewrite", + "routes", + "routing" + ], + "time": "2016-07-06T12:53:24+00:00" + }, + { + "name": "vlucas/phpdotenv", + "version": "v2.5.1", "source": { "type": "git", "url": "https://github.com/vlucas/phpdotenv.git", - "reference": "6ae3e2e6494bb5e58c2decadafc3de7f1453f70a" + "reference": "8abb4f9aa89ddea9d52112c65bbe8d0125e2fa8e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/6ae3e2e6494bb5e58c2decadafc3de7f1453f70a", - "reference": "6ae3e2e6494bb5e58c2decadafc3de7f1453f70a", + "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/8abb4f9aa89ddea9d52112c65bbe8d0125e2fa8e", + "reference": "8abb4f9aa89ddea9d52112c65bbe8d0125e2fa8e", "shasum": "" }, "require": { @@ -605,27 +947,7 @@ "env", "environment" ], - "time": "2018-07-01T10:25:50+00:00" - }, - { - "name": "wpackagist-plugin/timber-library", - "version": "1.7.1", - "source": { - "type": "svn", - "url": "https://plugins.svn.wordpress.org/timber-library/", - "reference": "tags/1.7.1" - }, - "dist": { - "type": "zip", - "url": "https://downloads.wordpress.org/plugin/timber-library.1.7.1.zip", - "reference": null, - "shasum": null - }, - "require": { - "composer/installers": "~1.0" - }, - "type": "wordpress-plugin", - "homepage": "https://wordpress.org/plugins/timber-library/" + "time": "2018-07-29T20:33:41+00:00" } ], "packages-dev": [], diff --git a/no-timber.html b/no-timber.html deleted file mode 100644 index 7d9437d..0000000 --- a/no-timber.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - Base Camp - - - -

Timber is no activated

- - -