- plugins
- simplify event subscription via new
$events
property #199 - new
getPluginPath()
method #206 - pass plugins in the
plugins_loaded
event #206
- simplify event subscription via new
- URL resolution
- new scheme adding meaning to a trailing slash in URL #192
- urldecode URLs #175
- fix broken
/index.php
URL
- improve symbolic-linking of and in the
content/
directory #197 - add method to clean the complete cache #213
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<project name="PhileCMS" default="menu"> | |
<property name="dirs.dist" value="dist"/> | |
<property name="dirs.build" value="phing-temp"/> | |
<property name="dirs.git" value="${dirs.build}/Phile"/> | |
<property name="git.url" value="https://github.com/PhileCMS/Phile.git"/> | |
<!-- ## menu ## --> | |
<target name="menu"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static function getFiles($directory, $filter = '\Phile\FilterIterator\GeneralFileFilterIterator') { | |
$files = new $filter(new \RecursiveIteratorIterator( | |
new \RecursiveDirectoryIterator( | |
$directory, | |
\RecursiveDirectoryIterator::FOLLOW_SYMLINKS | |
))); | |
$result = array(); | |
foreach ($files as $file) { | |
/** @var \SplFileInfo $file */ | |
$result[] = $file->getPathname(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Phile\Plugin\Phile\DemoPlugin; | |
use Phile\Core\Registry; | |
use Phile\Repository\Page; | |
class Plugin extends \Phile\Plugin\AbstractPlugin implements \Phile\Gateway\EventObserverInterface | |
{ | |
public function __construct() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Phile\Plugin\Phile\DemoPlugin; | |
use Phile\Core\Registry; | |
use Phile\Repository\Page; | |
class Plugin extends \Phile\Plugin\AbstractPlugin implements \Phile\Gateway\EventObserverInterface | |
{ | |
public function __construct() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Notice (8): Undefined index: Categories [CORE/src/ORM/ResultSet.php, line 546] | |
Code Context | |
Cake\ORM\ResultSet::_groupResult() - CORE/src/ORM/ResultSet.php, line 546 | |
Cake\ORM\ResultSet::_fetchResult() - CORE/src/ORM/ResultSet.php, line 478 | |
Cake\ORM\ResultSet::valid() - CORE/src/ORM/ResultSet.php, line 269 | |
Cake\ORM\ResultSet::first() - CORE/src/ORM/ResultSet.php, line 291 | |
Cake\ORM\Query::first() - CORE/src/Datasource/QueryTrait.php, line 340 | |
Sitemap\Lib\SitemapEntries::files() - ROOT/plugins/Sitemap/src/Lib/SitemapEntries.php, line 19 | |
Sitemap\Lib\SitemapCollection::files() - ROOT/plugins/Sitemap/src/Lib/SitemapCollection.php, line 37 | |
Sitemap\Controller\SitemapsController::index() - ROOT/plugins/Sitemap/src/Controller/SitemapsController.php, line 31 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Saito\Test; | |
use Cake\Error\ExceptionRenderer as CakeExceptionRenderer; | |
class ExceptionRenderer extends CakeExceptionRenderer { | |
public function __construct(\Exception $exception) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Dic { | |
/** | |
* @var \Aura\Di\Container; | |
*/ | |
static protected $_DIC; | |
public static function initialize() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class A { | |
protected $_properties = [ | |
'a' => 1, | |
'b' => 2 | |
]; | |
public function &get($property) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
date_default_timezone_set('UTC'); | |
var_dump(date_default_timezone_get()); | |
$dt = new \DateTime('2015-07-01T00:00:00+0200'); | |
var_dump($dt->format('c')); | |
$dt->setTimezone(new \DateTimeZone('UTC')); | |
var_dump($dt->format('c')); |
OlderNewer