Skip to content

Commit 435b853

Browse files
committed
[*] Different experimental classes have been removed.
1 parent 09ef53a commit 435b853

File tree

14 files changed

+24
-824
lines changed

14 files changed

+24
-824
lines changed

README.md

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
The main idea is taken from [XlsxWriter.php](https://gist.github.com/kunicmarko20/e0292280344761efbc7ff376f7080fec).
1+
# Symfony export xlsx
2+
3+
The main idea is taken from [XlsxWriter.php](https://gist.github.com/kunicmarko20/e0292280344761efbc7ff376f7080fec).
24

35
Except:
46
- PHPOffice\PHPExcel has been replaced with PHPOffice\PhpSpreadsheet;
57
- The class is used as a service to be able to use it anywhere and make changes to the file.
68

7-
![](https://img.shields.io/badge/license-MIT-green)
9+
![license-MIT-green](https://img.shields.io/badge/license-MIT-green)
810

9-
0. [Install](#Install)
10-
1. [Use Service](#Use-Service)
11-
2. [Customization](#Customization)
12-
3. [Use in SonataAdmin Export](#Use-in-SonataAdmin-Export)
13-
4. [Errors](#Errors)
11+
0. [Install](#install)
12+
1. [Use Service](#use-service)
13+
2. [Customization](#customization)
14+
3. [Use in SonataAdmin Export](#use-in-sonataadmin-export)
15+
4. [Errors](#errors)
1416

15-
# Install
17+
## Install
1618

1719
Run:
1820

@@ -34,7 +36,7 @@ composer update
3436
php composer.phar update
3537
```
3638

37-
# Use Service
39+
## Use Service
3840

3941
| Method | Parameters | Return | Description |
4042
|----------------|:---------:|:---------:|:----------------|
@@ -83,9 +85,9 @@ class ExportController extends AbstractController
8385
}
8486
}
8587
```
86-
![](doc/0000.PNG)
88+
![Example of a result](doc/0000.PNG)
8789

88-
# Customization
90+
## Customization
8991

9092
| Method | Return | Official Documentation |
9193
|----------------|:---------:|:----------------|
@@ -148,9 +150,9 @@ public function index(): Response
148150
}
149151
```
150152

151-
![](doc/0001.PNG)
153+
![Example of a result](doc/0001.PNG)
152154

153-
# Use in SonataAdmin Export
155+
## Use in SonataAdmin Export
154156

155157
Install if missing `SonataExporterBundle`
156158
```bash
@@ -189,15 +191,15 @@ protected function configureExportFields(): array
189191
}
190192
```
191193

192-
# Errors
194+
## Errors
193195

194196
If you see the error:
195-
```
197+
```log
196198
Attempted to call an undefined method named "toIterable" of class "Doctrine\ORM\Query"
197199
```
198200
Then make sure that the __`doctrine/orm`__ version is __`2.8`__ or __higher__.
199201

200202
You may need to update:
201203
- sonata-project/admin-bundle: ~`3.*`
202204
- sonata-project/doctrine-orm-admin-bundle: ~`3.*`
203-
- doctrine/doctrine-bundle: ~`^2.3`
205+
- doctrine/doctrine-bundle: ~`^2.3`

UPGRADE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Инструкции по обновлению для Symfony Export Xlsx
22
=========================================
33

4+
Upgrade from Helper 0.0.8
5+
-----------------------
6+
Different experimental classes have been removed.
7+
If you have used them, they have been moved to the repository: https://github.com/Denisok94/symfony-export
8+
49
Upgrade from Helper 0.0.4
510
-----------------------
611
upd Interfaces

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"email": "denisok94@inbox.ru"
1111
}
1212
],
13-
"version": "0.0.7",
13+
"version": "0.0.8",
1414
"require": {
1515
"denisok94/helper-composer": "^0.0.7",
1616
"phpoffice/phpspreadsheet": "^1.23"

src/Exception/ExportException.php

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/Export/ExportInterface.php

Lines changed: 0 additions & 72 deletions
This file was deleted.

src/Export/TableExport.php

Lines changed: 0 additions & 201 deletions
This file was deleted.

0 commit comments

Comments
 (0)