-
Notifications
You must be signed in to change notification settings - Fork 519
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
79fd69a
commit 00d379b
Showing
17 changed files
with
24 additions
and
24 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
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
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
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
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
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
use Vich\UploaderBundle\Util\PropertyPathUtils; | ||
|
||
/** | ||
* Directory namer wich can create subfolder depends on current datetime. | ||
* Directory namer which can create subfolder depends on current datetime. | ||
* | ||
* @author Vyacheslav Startsev <[email protected]> | ||
*/ | ||
|
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
use Vich\UploaderBundle\Mapping\PropertyMapping; | ||
|
||
/** | ||
* Namer wich uses hash function from random string for generating names. | ||
* Namer that uses hash function from random string for generating names. | ||
* | ||
* @author Konstantin Myakshin <[email protected]> | ||
*/ | ||
|
@@ -21,7 +21,7 @@ class HashNamer implements NamerInterface, ConfigurableInterface | |
|
||
/** | ||
* @param array $options Options for this namer. The following options are accepted: | ||
* - algorithm: wich hash algorithm to use. | ||
* - algorithm: which hash algorithm to use. | ||
* - length: limit file name length | ||
*/ | ||
public function configure(array $options): void | ||
|
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
use Vich\UploaderBundle\Util\Transliterator; | ||
|
||
/** | ||
* Directory namer which can create subfolder depends on property. | ||
* Directory namer that can create subfolder depends on property. | ||
* | ||
* @author Raynald Coupé <[email protected]> | ||
*/ | ||
|
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
use Vich\UploaderBundle\Util\Transliterator; | ||
|
||
/** | ||
* This namer uses a slug to keep original name when possibile. | ||
* This namer uses a slug to keep original name when possible. | ||
* | ||
* @author Massimiliano Arione <[email protected]> | ||
*/ | ||
|
@@ -29,7 +29,7 @@ public function name(object $object, PropertyMapping $mapping): string | |
? \sprintf('%s.%s', $basename, $extension) | ||
: $basename; | ||
|
||
// check if there another object with same slug | ||
// check if there is another object with same slug | ||
$num = 0; | ||
while (true) { | ||
$otherObject = $this->service->{$this->method}($slug); | ||
|
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
use Vich\UploaderBundle\Util\Transliterator; | ||
|
||
/** | ||
* This namer makes filename unique by appending a uniqid. | ||
* This namer makes filename unique by appending a uniqueid. | ||
* Also, filename is made web-friendly by transliteration. | ||
* | ||
* @author Massimiliano Arione <[email protected]> | ||
|
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
use Vich\UploaderBundle\Mapping\PropertyMapping; | ||
|
||
/** | ||
* Directory namer wich can create subfolder depends on generated filename. | ||
* Directory namer that can create subfolder depends on generated filename. | ||
* | ||
* @author Konstantin Myakshin <[email protected]> | ||
*/ | ||
|
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