8000 [JsonPath] Add the component as experimental · symfony/symfony@ce60d57 · GitHub
[go: up one dir, main page]

Skip to content

Commit ce60d57

Browse files
[JsonPath] Add the component as experimental
1 parent eff9b52 commit ce60d57

22 files changed

+1755
-0
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
"symfony/http-kernel": "self.version",
8585
"symfony/intl": "self.version",
8686
"symfony/json-encoder": "self.version",
87+
"symfony/json-path": "self.version",
8788
"symfony/ldap": "self.version",
8889
"symfony/lock": "self.version",
8990
"symfony/mailer": "self.version",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
8000 1+
/Tests export-ignore
2+
/phpunit.xml.dist export-ignore
3+
/.git* export-ignore

src/Symfony/Component/JsonPath/.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Symfony/Component/JsonPath/.github/workflows/close-pull-request.yml

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
vendor/
2+
composer.lock
3+
phpunit.xml
Lines changed: 7 additions & 0 deletions
8000
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CHANGELOG
2+
=========
3+
4+
7.3
5+
---
6+
7+
* Add the component as experimental
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
namespace Symfony\Component\JsonPath\Exception;
13+
14+
/**
15+
* Thrown when a JSON passed as an input is invalid, e.g. in {@see JsonCrawler}.
16+
*/
17+
class InvalidInputJsonException extends \InvalidArgumentException
18+
{
19+
public function __construct(string $message, ?\Throwable $previous = null)
20+
{
21+
parent::__construct(\sprintf('Invalid input JSON: %s.', $message), previous: $previous);
22+
}
23+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
namespace Symfony\Component\JsonPath\Exception;
13+
14+
class InvalidJsonPathException extends \RuntimeException
15+
{
16+
public function __construct(string $message, ?int $position = null)
17+
{
18+
parent::__construct(\sprintf('JSONPath syntax error%s: %s', $position ? ' at position '.$position : '', $message));
19+
}
20+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
namespace Symfony\Component\JsonPath\Exception;
13+
14+
class JsonCrawlerException extends \RuntimeException
15+
{
16+
public function __construct(string $path, string $message, ?\Throwable $previous = null)
17+
{
18+
parent::__construct(\sprintf('Error while crawling JSON with JSON path "%s": %s.', $path, $message), previous: $previous);
19+
}
20+
}

0 commit comments

Comments
 (0)
0