-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d3dca37
commit 9aa2596
Showing
8 changed files
with
149 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 |
---|---|---|
@@ -1,8 +1,12 @@ | ||
* text=auto | ||
/.github/ export-ignore | ||
/.phpstan/ export-ignore | ||
/Tests/ export-ignore | ||
/.gitattributes export-ignore | ||
/.github_changelog_generator export-ignore | ||
/.php_cs.dist export-ignore | ||
/.scrutinizer.yml export-ignore | ||
/.styleci.yml export-ignore | ||
/.travis.yml export-ignore | ||
/.phpstan.neon.dist export-ignore | ||
/.phpunit.xml.dist export-ignore |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
parameters: | ||
ignoreErrors: | ||
- message: '#^Access to undefined constant Liip\\ImagineBundle\\Config\\Filter\\Type\\FilterAbstract::NAME\.$#' | ||
paths: | ||
- ../Config/Filter/Type/FilterAbstract.php | ||
- message: '#^Unsafe usage of new static\(\)\.$#' | ||
paths: | ||
- ../Async/CacheResolved.php | ||
- ../Async/ResolveCache.php |
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,38 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\EventDispatcher; | ||
|
||
/** | ||
* @deprecated since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead | ||
*/ | ||
class Event | ||
{ | ||
private $propagationStopped = false; | ||
|
||
/** | ||
* @return bool Whether propagation was already stopped for this event | ||
* | ||
* @deprecated since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead | ||
*/ | ||
public function isPropagationStopped() | ||
{ | ||
return $this->propagationStopped; | ||
} | ||
|
||
/** | ||
* @deprecated since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead | ||
*/ | ||
public function stopPropagation() | ||
{ | ||
$this->propagationStopped = true; | ||
} | ||
} |
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,31 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\HttpFoundation\File\MimeType; | ||
|
||
use Symfony\Component\Mime\MimeTypesInterface; | ||
|
||
/** | ||
* Guesses the file extension corresponding to a given mime type. | ||
* | ||
* @deprecated since Symfony 4.3, use {@link MimeTypesInterface} instead | ||
*/ | ||
interface ExtensionGuesserInterface | ||
{ | ||
/** | ||
* Makes a best guess for a file extension, given a mime type. | ||
* | ||
* @param string $mimeType The mime type | ||
* | ||
* @return string The guessed extension or NULL, if none could be guessed | ||
*/ | ||
public function guess($mimeType); | ||
} |
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,38 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\HttpFoundation\File\MimeType; | ||
|
||
use Symfony\Component\HttpFoundation\File\Exception\AccessDeniedException; | ||
use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException; | ||
use Symfony\Component\Mime\MimeTypesInterface; | ||
|
||
/** | ||
* Guesses the mime type of a file. | ||
* | ||
* @author Bernhard Schussek <[email protected]> | ||
* | ||
* @deprecated since Symfony 4.3, use {@link MimeTypesInterface} instead | ||
*/ | ||
interface MimeTypeGuesserInterface | ||
{ | ||
/** | ||
* Guesses the mime type of the file with the given path. | ||
* | ||
* @param string $path The path to the file | ||
* | ||
* @return string|null The mime type or NULL, if none could be guessed | ||
* | ||
* @throws FileNotFoundException If the file does not exist | ||
* @throws AccessDeniedException If the file could not be read | ||
*/ | ||
public function guess($path); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
includes: | ||
- .phpstan/baseline.neon | ||
parameters: | ||
level: 1 | ||
paths: | ||
- Async | ||
- Binary | ||
- Command | ||
- Component | ||
- Config | ||
- Controller | ||
- DependencyInjection | ||
- Events | ||
- Exception | ||
- Factory | ||
- Form | ||
- Imagine | ||
- Model | ||
- Resources | ||
- Service | ||
- Templating | ||
- Utility | ||
- LiipImagineBundle.php | ||
scanFiles: | ||
- .phpstan/stubs/Event.stub | ||
- .phpstan/stubs/ExtensionGuesserInterface.stub | ||
- .phpstan/stubs/MimeTypeGuesserInterface.stub |