-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from sherlockode/feature/sf-4-sf-5-compatibility
Symfony 4.4 & Symfony 5.0 compatibility
- Loading branch information
Showing
25 changed files
with
181 additions
and
160 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,7 +65,6 @@ public function reverseTransform($data) | |
$data->getFilename(), | ||
null, | ||
null, | ||
null, | ||
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
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<container xmlns="http://symfony.com/schema/dic/services" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" | ||
> | ||
<services> | ||
<service id="sherlockode_afb.command.remove_tmp_files" class="Sherlockode\AdvancedFormBundle\Command\RemoveTemporaryFileCommand"> | ||
<argument type="service" id="doctrine.orm.entity_manager"/> | ||
<argument type="service" id="sherlockode_afb.storage.tmp_storage"/> | ||
<argument>%sherlockode_afb.tmp_uploaded_file_class%</argument> | ||
<tag name="console.command"/> | ||
</service> | ||
</services> | ||
</container> |
This file was deleted.
Oops, something went wrong.
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,33 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<container xmlns="http://symfony.com/schema/dic/services" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" | ||
> | ||
<services> | ||
<service id="sherlockode_afb.file_upload.controller" class="Sherlockode\AdvancedFormBundle\Controller\FileUploadController" public="true"> | ||
<argument type="service" id="sherlockode_afb.upload_manager"/> | ||
<argument type="service" id="sherlockode_afb.mapping_manager"/> | ||
<argument type="service" id="doctrine.orm.entity_manager"/> | ||
<argument type="service" id="event_dispatcher"/> | ||
<call method="setContainer"> | ||
<argument type="service" id="service_container"/> | ||
</call> | ||
</service> | ||
<service id="sherlockode_afb.file_upload.temporary_upload_controller" class="Sherlockode\AdvancedFormBundle\Controller\TemporaryFileUploadController" public="true"> | ||
<argument type="service" id="sherlockode_afb.upload_manager"/> | ||
<argument>%sherlockode_afb.tmp_uploaded_file_class%</argument> | ||
<argument type="service" id="sherlockode_afb.storage.tmp_storage"/> | ||
<argument type="service" id="event_dispatcher"/> | ||
<call method="setContainer"> | ||
<argument type="service" id="service_container"/> | ||
</call> | ||
</service> | ||
<service id="sherlockode_afb.dependent_entity.controller" class="Sherlockode\AdvancedFormBundle\Controller\DependentEntityController" public="true"> | ||
<argument type="service" id="event_dispatcher"/> | ||
<argument type="service" id="sherlockode_afb.dependent_entity.mapper_pool"/> | ||
<call method="setContainer"> | ||
<argument type="service" id="service_container"/> | ||
</call> | ||
</service> | ||
</services> | ||
</container> |
This file was deleted.
Oops, something went wrong.
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,40 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<container xmlns="http://symfony.com/schema/dic/services" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" | ||
> | ||
<services> | ||
<service id="sherlockode_afb.file.form_entity_type" class="Sherlockode\AdvancedFormBundle\Form\Type\EntityMappingType"> | ||
<argument type="service" id="doctrine.orm.entity_manager"/> | ||
<argument type="service" id="sherlockode_afb.mapping_manager"/> | ||
<tag name="form.type"/> | ||
</service> | ||
<service id="sherlockode_afb.file.form_type" class="Sherlockode\AdvancedFormBundle\Form\Type\FileType"> | ||
<argument type="service" id="router"/> | ||
<argument type="service" id="sherlockode_afb.upload_manager"/> | ||
<argument type="service" id="sherlockode_afb.mapping_manager"/> | ||
<argument>%sherlockode_afb.tmp_uploaded_file_dir%</argument> | ||
<tag name="form.type"/> | ||
</service> | ||
<service id="sherlockode_afb.file.collection_type" class="Sherlockode\AdvancedFormBundle\Form\Type\FileCollectionType"> | ||
<tag name="form.type"/> | ||
</service> | ||
<service id="sherlockode_afb.file.tmp_type" class="Sherlockode\AdvancedFormBundle\Form\Type\TemporaryUploadedFileType"> | ||
<argument type="service" id="doctrine.orm.entity_manager"/> | ||
<argument>%sherlockode_afb.tmp_uploaded_file_class%</argument> | ||
<tag name="form.type"/> | ||
</service> | ||
<service id="sherlockode_afb.file.upload_type" class="Sherlockode\AdvancedFormBundle\Form\Type\UploadFileType"> | ||
<argument type="service" id="sherlockode_afb.mapping_manager"/> | ||
<argument type="service" id="translator"/> | ||
<tag name="form.type"/> | ||
</service> | ||
<service id="sherlockode_afb.form.dependent_entity_type" class="Sherlockode\AdvancedFormBundle\Form\Type\DependentEntityType"> | ||
<argument type="service" id="doctrine.orm.entity_manager"/> | ||
<argument type="service" id="translator"/> | ||
<argument type="service" id="sherlockode_afb.dependent_entity.mapper_pool"/> | ||
<argument type="service" id="router"/> | ||
<tag name="form.type"/> | ||
</service> | ||
</services> | ||
</container> |
This file was deleted.
Oops, something went wrong.
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,39 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<container xmlns="http://symfony.com/schema/dic/services" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" | ||
> | ||
<services> | ||
<service id="sherlockode_afb.upload_handler.vich" class="Sherlockode\AdvancedFormBundle\UploadHandler\VichUploadHandler"> | ||
<argument type="service" id="vich_uploader.upload_handler"/> | ||
<argument type="service" id="annotation_reader"/> | ||
<tag name="sherlockode_afb.upload_handler" alias="vich"/> | ||
</service> | ||
<service id="sherlockode_afb.upload_handler.property" class="Sherlockode\AdvancedFormBundle\UploadHandler\PropertyUploadHandler"> | ||
<argument type="service" id="sherlockode_afb.mapping_manager"/> | ||
<argument/> | ||
<tag name="sherlockode_afb.upload_handler" alias="property"/> | ||
</service> | ||
<service id="sherlockode_afb.upload_manager" class="Sherlockode\AdvancedFormBundle\Manager\UploadManager"> | ||
<argument type="service" id="doctrine.orm.entity_manager"/> | ||
<argument type="service" id="sherlockode_afb.storage.tmp_storage"/> | ||
<argument>%sherlockode_afb.tmp_uploaded_file_class%</argument> | ||
</service> | ||
<service id="sherlockode_afb.mapping_manager" class="Sherlockode\AdvancedFormBundle\Manager\MappingManager"> | ||
<call method="setMappingData"> | ||
<argument>%sherlockode_afb.uploader_mappings%</argument> | ||
</call> | ||
</service> | ||
<service id="sherlockode_afb.storage.tmp_storage" class="Sherlockode\AdvancedFormBundle\Storage\FilesystemStorage"> | ||
<argument>%sherlockode_afb.tmp_uploaded_file_dir%</argument> | ||
</service> | ||
<service id="sherlockode_afb.twig_extension" class="Sherlockode\AdvancedFormBundle\Twig\Extension\UploaderExtension"> | ||
<argument type="service" id="router"/> | ||
<argument type="service" id="sherlockode_afb.mapping_manager"/> | ||
<argument type="service" id="sherlockode_afb.upload_manager"/> | ||
<tag name="twig.extension"/> | ||
</service> | ||
<service id="sherlockode_afb.dependent_entity.mapper_pool" class="Sherlockode\AdvancedFormBundle\DependentEntity\DependentMapperPool"> | ||
</service> | ||
</services> | ||
</container> |
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<routes xmlns="http://symfony.com/schema/routing" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd" | ||
> | ||
<import resource="@SherlockodeAdvancedFormBundle/Resources/config/routing/dependent_entity.xml" /> | ||
<import resource="@SherlockodeAdvancedFormBundle/Resources/config/routing/upload.xml" /> | ||
</routes> |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<routes xmlns="http://symfony.com/schema/routing" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd" | ||
> | ||
<route id="sherlockode_afb_dependent_results" path="/sherlockodeadvancedform/dependent-result"> | ||
<default key="_controller">sherlockode_afb.dependent_entity.controller:getDependentResultsAction</default> | ||
</route> | ||
</routes> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.