Skip to content

Commit

Permalink
Fixed deprecations and removed symfony/templating (#440)
Browse files Browse the repository at this point in the history
Co-authored-by: MB_GMBH\borisf <borisf@miltenyi.com>
  • Loading branch information
knallcharge and MB_GMBH\borisf authored Feb 19, 2024
1 parent 1bf94c1 commit d0323da
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"symfony/finder": "^5.4 || ^6.0 || ^7.0",
"symfony/framework-bundle": "^5.4 || ^6.0 || ^7.0",
"symfony/mime": "^5.4 || ^6.0 || ^7.0",
"symfony/templating": "^5.4 || ^6.0 || ^7.0",
"symfony/translation": "^5.4 || ^6.0 || ^7.0",
"symfony/translation-contracts": "^1.0 || ^2.0 || ^3.0",
"symfony/yaml": "^5.4 || ^6.0 || ^7.0",
Expand Down
2 changes: 0 additions & 2 deletions src/Command/ClearOrphansCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
)]
class ClearOrphansCommand extends Command
{
protected static $defaultName = 'oneup:uploader:clear-orphans';

/**
* @var OrphanageManager
*/
Expand Down
1 change: 0 additions & 1 deletion src/Resources/config/templating.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<service id="oneup_uploader.templating.uploader_helper" class="Oneup\UploaderBundle\Templating\Helper\UploaderHelper" public="true">
<argument type="service" id="router" />
<argument>%oneup_uploader.maxsize%</argument>
<tag name="templating.helper" alias="oneup_uploader" />
</service>

</services>
Expand Down
3 changes: 1 addition & 2 deletions src/Templating/Helper/UploaderHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
namespace Oneup\UploaderBundle\Templating\Helper;

use Symfony\Component\Routing\RouterInterface;
use Symfony\Component\Templating\Helper\Helper;

class UploaderHelper extends Helper
class UploaderHelper
{
public function __construct(protected RouterInterface $router, protected array $maxsize)
{
Expand Down

0 comments on commit d0323da

Please sign in to comment.