-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Throw FOSCKEditorBundle exception on bad proxy url (#176)
- Loading branch information
1 parent
4aa4256
commit ca2b528
Showing
3 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the FOSCKEditor Bundle. | ||
* | ||
* (c) 2018 - present Friends of Symfony | ||
* (c) 2009 - 2017 Eric GELOEN <[email protected]> | ||
* | ||
* For the full copyright and license information, please read the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace FOS\CKEditorBundle\Exception; | ||
|
||
use RuntimeException; | ||
|
||
/** | ||
* @author Marko Kunic <[email protected]> | ||
*/ | ||
final class BadProxyUrlException extends RuntimeException implements FOSCKEditorException | ||
{ | ||
public static function fromEnvUrl(string $url): self | ||
{ | ||
return new static(sprintf('Unable to parse provided proxy url "%s".', $url)); | ||
} | ||
} |
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
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