Commit Graph

45 Commits

Author SHA1 Message Date
Andy Miller
a1c116dd82
update copyright year 2024-01-05 11:43:52 +00:00
Andy Miller
a86e0d4b96
Update copyright date 2023-01-02 11:09:32 -07:00
Andy Miller
3a00ca0457
temp workaround for windows issue - Fixes #2299 2022-10-04 17:55:21 -06:00
Matias Griese
6fa96ca554 Regression: Fixed saving page with a new language causing cache corruption [#2282] 2022-05-20 15:55:38 +03:00
Matias Griese
a092aed4ed When saving yaml and markdown, create also a cached version of the file and recompile it in opcache 2022-03-30 12:00:59 +03:00
Matias Griese
7c2b21fb60 Fixed missing changes in yaml & markdown files if saved multiple times during the same second because of a caching issue 2022-03-29 21:35:02 +03:00
Matias Griese
84a1ab6ca5 Added unicode-safe Utils::basename() and Utils::pathinfo() methods and use them everywhere 2022-01-26 13:54:33 +02:00
Andy Miller
3b7921b698
updated copyright year 2022-01-03 09:14:00 -07:00
Djamil Legato
25f8b787b6
Oh, don’t mind me… just bringing Grav to 2021! 🎆 2021-02-04 21:09:42 -08:00
Matias Griese
e92d88df8b Fixed fatal error in CompiledFile if the cached version is broken 2020-11-12 13:35:36 +02:00
Matias Griese
819e412e09 Improve docblocks in Grav\Common, improve code readability 2020-09-20 22:04:40 +03:00
Andy Miller
a6f7637134
Updated copyright dates to 2020 2020-01-02 16:54:14 -07:00
Matias Griese
620fd7ed88 Added missing docblocks, fixed some typehints 2019-12-04 10:25:24 +02:00
Matias Griese
f0c12e6246 Fixed a few type hints 2019-11-15 09:00:48 +02:00
Matias Griese
913efdbd6a Revert multiple changes as many of those break Grav functionality [#2699] 2019-10-22 15:20:35 +03:00
Rasmus Lerdorf
32a9acc62e Add a .phan config file and stubs for Phan static analysis
I fixed some small inconsistencies here and there. There are still
a little over 200 to go. This time against the 1.7 branch.

To try it, checkout this PR and run:
composer require phan/phan
It doesn't have to be in the Grav tree. You can install it anywhere.
Then from the top-level Grav dir:
/vendor/bin/phan -p

You can see the ones that are left to address here:
https://gist.github.com/69eac9b37ced1cadc08ed4be0ee84f40

Also, and the main reason I added it, was to get some nice
dependency graphs from Phan to help me understand the Grav code. Some
examples:
http://pdep.lerdorf.com/?mode=class&node=\Grav\Common\File\CompiledFile&d=3
http://pdep.lerdorf.com/?mode=class&node=\Grav\Common\Filesystem\Folder&d=1
http://pdep.lerdorf.com/?mode=class&node=\Doctrine\Common\Cache\Cache&d=2
http://pdep.lerdorf.com/?mode=class&node=\RocketTheme\Toolbox\ArrayTraits\Export&d=1

Move the slider to change the number of dependency levels shown.
2019-10-16 10:38:08 -07:00
Patric Johansson
4bba284bf5 Update Core to follow PSR-2 standard 2019-10-15 13:33:48 +03:00
Matias Griese
4f80a1567d Update PHP file headers and copyrights 2019-01-31 10:04:57 +02:00
Andy Miller
23098a6b02
Revert "Grav 1.6 copyright updates and cleanup (PHP files only) (#2351)"
This reverts commit 0566185c4f.
2019-01-30 17:54:37 -07:00
Matias Griese
0566185c4f Grav 1.6 copyright updates and cleanup (PHP files only) (#2351)
* Framework: update copyrights to 2019

* Some code cleanup (Assets, Backup, Config, Session)

* Continue code cleanup, update copyrights

* Fixed exception issues in scheduler, code cleanup

* Remove apc and xcache support, make apc alias of apcu

* Fixed Getters::count() method not returning anything

* More code cleanup, copyright updates

* Copyright updates for Grav\Console
2019-01-30 13:44:19 -07:00
Matias Griese
708c79cef8 Improved user serialization to use less memory in the session 2018-11-27 10:15:55 +02:00
Matias Griese
261ea62472 Added compatibility mode to fall back to Symfony YAML 2.8 when needed 2018-04-20 14:03:49 +03:00
Andy Miller
7ec66b2bf2
Transferred copyright 2017-12-11 15:08:05 -07:00
Matias Griese
b31490e52d Merge branch 'develop' of https://github.com/getgrav/grav into 2.0 2017-11-06 10:28:10 +02:00
Matias Griese
980b2b67cd Code readability improvements 2017-11-06 10:18:22 +02:00
Viktor
2cd469cd7c Update CompiledFile.php (#1693)
const CACHE_DIR already defined with trailing slash

```php
define('CACHE_DIR', ROOT_DIR . 'cache/');
```
2017-11-01 17:20:38 -06:00
Flavio Copes
cdc6b910cb Bump year 2017-05-05 17:21:59 +02:00
Matias Griese
c6c8577b6f
Silence E_WARNING: Zend OPcache API is restricted by "restrict_api" configuration directive 2017-01-27 10:29:55 +02:00
Matias Griese
833cd497bb YAML syntax fixes 2016-12-08 12:57:40 +02:00
Andy Miller
6c042b4804 Unified PHP code header styling 2016-07-11 16:07:14 -06:00
Andy Miller
e30d342071 Removed unused use statement 2016-04-28 12:14:55 -06:00
Flavio Copes
9129ce25d4 Fix directory separator issue creating cachecompiled and cachetmp folders 2016-04-27 10:18:34 +02:00
Andy Miller
55f0fc82e8 Reverted change made in cd31d41 that broke saving plugin/theme locations 2016-04-26 16:22:14 -06:00
Flavio Copes
cd31d41b07 Use locator instead of CACHE_DIR 2016-04-22 18:39:10 +02:00
Matias Griese
e880cf9c63 Fix warning on opcache clean 2016-04-11 08:27:16 +03:00
Matias Griese
9f7874a4f6 Simplify opcache test 2016-04-11 08:23:52 +03:00
Matias Griese
29eb3932ce Fix Zend Opcache opcache.validate_timestamps=0 not detecting changes in compiled yaml and twig files 2016-04-08 11:50:21 +03:00
Matias Griese
9764cf3f65 Sync CompiledFile class with Gantry 2015-11-23 11:00:28 +02:00
Andy Miller
98b8f1f9e5 Fix issue with empty yaml not creating an empty array with native YAML parser 2015-10-20 14:39:08 -06:00
Andy Miller
2b8adfee05 Make use of Native YAML parser if available (big speed boost!!) 2015-10-15 17:40:16 -06:00
Andy Miller
ca12c69741 fix for system lang files 2015-08-01 10:20:15 -06:00
Matias Griese
8aec9f7c15 Improve and optimize configuration loading 2014-10-16 11:34:17 +03:00
Matias Griese
9e032a7120 Fix wrong namespace declaration 2014-09-03 15:50:17 +03:00
Matias Griese
ac8483f894 Start using RocketTheme\Toolbox and remove local copies of the Toolbox classes 2014-09-03 14:34:40 +03:00
Matias Griese
affa768efb Ground work for allowing multiple configurations 2014-09-03 09:57:46 +03:00