Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc0bb3a7

Browse files
dem3triofabpot
authored andcommitted
[DebugBundle] Added 'theme' option to change the color of dump() when rendered inside templates
1 parent3411e91 commitc0bb3a7

File tree

264 files changed

+3600
-2210
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

264 files changed

+3600
-2210
lines changed

‎UPGRADE-4.3.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
UPGRADE FROM 4.2 to 4.3
2+
=======================
3+
4+
Config
5+
------
6+
7+
* Deprecated using environment variables with`cannotBeEmpty()` if the value is validated with`validate()`

‎UPGRADE-5.0.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Config
1818
* Added the`getChildNodeDefinitions()` method to`ParentNodeDefinitionInterface`.
1919
* The`Processor` class has been made final
2020
* Removed`FileLoaderLoadException`, use`LoaderLoadException` instead.
21+
* Using environment variables with`cannotBeEmpty()` if the value is validated with`validate()` will throw an exception.
2122

2223
Console
2324
-------

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
"minimum-stability":"dev",
148148
"extra": {
149149
"branch-alias": {
150-
"dev-master":"4.2-dev"
150+
"dev-master":"4.3-dev"
151151
}
152152
}
153153
}

‎src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public function configureOptions(OptionsResolver $resolver)
213213
// for equal query builders
214214
$queryBuilderNormalizer =function (Options$options,$queryBuilder) {
215215
if (\is_callable($queryBuilder)) {
216-
$queryBuilder =\call_user_func($queryBuilder,$options['em']->getRepository($options['class']));
216+
$queryBuilder =$queryBuilder($options['em']->getRepository($options['class']));
217217
}
218218

219219
return$queryBuilder;

‎src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function configureOptions(OptionsResolver $resolver)
2929
// for equal query builders
3030
$queryBuilderNormalizer =function (Options$options,$queryBuilder) {
3131
if (\is_callable($queryBuilder)) {
32-
$queryBuilder =\call_user_func($queryBuilder,$options['em']->getRepository($options['class']));
32+
$queryBuilder =$queryBuilder($options['em']->getRepository($options['class']));
3333

3434
if (null !==$queryBuilder && !$queryBuilderinstanceof QueryBuilder) {
3535
thrownewUnexpectedTypeException($queryBuilder,'Doctrine\ORM\QueryBuilder');

‎src/Symfony/Bridge/Doctrine/composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"minimum-stability":"dev",
6767
"extra": {
6868
"branch-alias": {
69-
"dev-master":"4.2-dev"
69+
"dev-master":"4.3-dev"
7070
}
7171
}
7272
}

‎src/Symfony/Bridge/Monolog/Handler/ServerLogHandler.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ private function formatRecord(array $record)
102102
{
103103
if ($this->processors) {
104104
foreach ($this->processorsas$processor) {
105-
$record =\call_user_func($processor,$record);
105+
$record =$processor($record);
106106
}
107107
}
108108

‎src/Symfony/Bridge/Monolog/composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"minimum-stability":"dev",
4747
"extra": {
4848
"branch-alias": {
49-
"dev-master":"4.2-dev"
49+
"dev-master":"4.3-dev"
5050
}
5151
}
5252
}

‎src/Symfony/Bridge/PhpUnit/CHANGELOG.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
4.3.0
5+
-----
6+
7+
* added`ClassExistsMock`
8+
49
4.1.0
510
-----
611

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespaceSymfony\Bridge\PhpUnit;
13+
14+
/**
15+
* @author Roland Franssen <franssen.roland@gmail.com>
16+
*/
17+
class ClassExistsMock
18+
{
19+
privatestatic$classes =array();
20+
21+
/**
22+
* Configures the classes to be checked upon existence.
23+
*
24+
* @param array $classes Mocked class names as keys (case sensitive, without leading root namespace slash) and booleans as values
25+
*/
26+
publicstaticfunctionwithMockedClasses(array$classes)
27+
{
28+
self::$classes =$classes;
29+
}
30+
31+
publicstaticfunctionclass_exists($name,$autoload =true)
32+
{
33+
return (bool) (self::$classes[ltrim($name,'\\')] ??\class_exists($name,$autoload));
34+
}
35+
36+
publicstaticfunctioninterface_exists($name,$autoload =true)
37+
{
38+
return (bool) (self::$classes[ltrim($name,'\\')] ??\interface_exists($name,$autoload));
39+
}
40+
41+
publicstaticfunctiontrait_exists($name,$autoload =true)
42+
{
43+
return (bool) (self::$classes[ltrim($name,'\\')] ??\trait_exists($name,$autoload));
44+
}
45+
46+
publicstaticfunctionregister($class)
47+
{
48+
$self =\get_called_class();
49+
50+
$mockedNs =array(substr($class,0,strrpos($class,'\\')));
51+
if (0 <strpos($class,'\\Tests\\')) {
52+
$ns =str_replace('\\Tests\\','\\',$class);
53+
$mockedNs[] =substr($ns,0,strrpos($ns,'\\'));
54+
}elseif (0 ===strpos($class,'Tests\\')) {
55+
$mockedNs[] =substr($class,6,strrpos($class,'\\') -6);
56+
}
57+
foreach ($mockedNsas$ns) {
58+
foreach (array('class','interface','trait')as$type) {
59+
if (\function_exists($ns.'\\'.$type.'_exists')) {
60+
continue;
61+
}
62+
eval(<<<EOPHP
63+
namespace$ns;
64+
65+
function{$type}_exists(\$name,\$autoload = true)
66+
{
67+
return \\$self::{$type}_exists(\$name,\$autoload);
68+
}
69+
70+
EOPHP
71+
);
72+
}
73+
}
74+
}
75+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp