Browse Source

add the necessary sonata bundles #2

Laszlo Lang 3 months ago
parent
commit
4dd2f208ab
67 changed files with 5048 additions and 759 deletions
  1. 7
    0
      .env.dist
  2. 5
    0
      composer.json
  3. 3822
    758
      composer.lock
  4. 15
    0
      config/bundles.php
  5. 7
    0
      config/packages/dev/jms_serializer.yaml
  6. 4
    0
      config/packages/dev/swiftmailer.yaml
  7. 7
    0
      config/packages/doctrine.yaml
  8. 12
    0
      config/packages/fos_user.yaml
  9. 3
    0
      config/packages/framework.yaml
  10. 13
    0
      config/packages/jms_serializer.yaml
  11. 6
    0
      config/packages/prod/jms_serializer.yaml
  12. 62
    0
      config/packages/security.yaml
  13. 28
    0
      config/packages/sonata_admin.yaml
  14. 4
    0
      config/packages/sonata_core.yaml
  15. 29
    0
      config/packages/sonata_media.yaml
  16. 6
    0
      config/packages/sonata_user.yaml
  17. 3
    0
      config/packages/swiftmailer.yaml
  18. 2
    0
      config/packages/test/swiftmailer.yaml
  19. 7
    0
      config/packages/translation.yaml
  20. 11
    0
      config/packages/twig_extensions.yaml
  21. 3
    0
      config/packages/validator.yaml
  22. 8
    0
      config/routes/sonata_admin.yaml
  23. 7
    0
      config/routes/sonata_media.yaml
  24. 7
    0
      config/routes/sonata_user.yaml
  25. 4
    1
      config/services.yaml
  26. 0
    0
      src/Admin/.gitignore
  27. 24
    0
      src/Application/Sonata/MediaBundle/ApplicationSonataMediaBundle.php
  28. 31
    0
      src/Application/Sonata/MediaBundle/Document/Gallery.php
  29. 31
    0
      src/Application/Sonata/MediaBundle/Document/Media.php
  30. 31
    0
      src/Application/Sonata/MediaBundle/Entity/Gallery.php
  31. 31
    0
      src/Application/Sonata/MediaBundle/Entity/GalleryHasMedia.php
  32. 31
    0
      src/Application/Sonata/MediaBundle/Entity/Media.php
  33. 31
    0
      src/Application/Sonata/MediaBundle/PHPCR/Gallery.php
  34. 31
    0
      src/Application/Sonata/MediaBundle/PHPCR/GalleryHasMedia.php
  35. 17
    0
      src/Application/Sonata/MediaBundle/PHPCR/GalleryHasMediaRepository.php
  36. 17
    0
      src/Application/Sonata/MediaBundle/PHPCR/GalleryRepository.php
  37. 31
    0
      src/Application/Sonata/MediaBundle/PHPCR/Media.php
  38. 17
    0
      src/Application/Sonata/MediaBundle/PHPCR/MediaRepository.php
  39. 17
    0
      src/Application/Sonata/MediaBundle/Resources/config/doctrine/Gallery.mongodb.xml
  40. 21
    0
      src/Application/Sonata/MediaBundle/Resources/config/doctrine/Gallery.orm.xml
  41. 26
    0
      src/Application/Sonata/MediaBundle/Resources/config/doctrine/Gallery.phpcr.xml
  42. 21
    0
      src/Application/Sonata/MediaBundle/Resources/config/doctrine/GalleryHasMedia.orm.xml
  43. 28
    0
      src/Application/Sonata/MediaBundle/Resources/config/doctrine/GalleryHasMedia.phpcr.xml
  44. 17
    0
      src/Application/Sonata/MediaBundle/Resources/config/doctrine/Media.mongodb.xml
  45. 21
    0
      src/Application/Sonata/MediaBundle/Resources/config/doctrine/Media.orm.xml
  46. 26
    0
      src/Application/Sonata/MediaBundle/Resources/config/doctrine/Media.phpcr.xml
  47. 7
    0
      src/Application/Sonata/MediaBundle/Resources/config/serializer/Document.Gallery.xml
  48. 7
    0
      src/Application/Sonata/MediaBundle/Resources/config/serializer/Document.GalleryHasMedia.xml
  49. 7
    0
      src/Application/Sonata/MediaBundle/Resources/config/serializer/Document.Media.xml
  50. 7
    0
      src/Application/Sonata/MediaBundle/Resources/config/serializer/Entity.Gallery.xml
  51. 7
    0
      src/Application/Sonata/MediaBundle/Resources/config/serializer/Entity.GalleryHasMedia.xml
  52. 7
    0
      src/Application/Sonata/MediaBundle/Resources/config/serializer/Entity.Media.xml
  53. 24
    0
      src/Application/Sonata/UserBundle/ApplicationSonataUserBundle.php
  54. 31
    0
      src/Application/Sonata/UserBundle/Document/Group.php
  55. 31
    0
      src/Application/Sonata/UserBundle/Document/User.php
  56. 31
    0
      src/Application/Sonata/UserBundle/Entity/Group.php
  57. 31
    0
      src/Application/Sonata/UserBundle/Entity/User.php
  58. 13
    0
      src/Application/Sonata/UserBundle/Resources/config/doctrine/Group.mongodb.xml
  59. 15
    0
      src/Application/Sonata/UserBundle/Resources/config/doctrine/Group.orm.xml
  60. 13
    0
      src/Application/Sonata/UserBundle/Resources/config/doctrine/User.mongodb.xml
  61. 15
    0
      src/Application/Sonata/UserBundle/Resources/config/doctrine/User.orm.xml
  62. 7
    0
      src/Application/Sonata/UserBundle/Resources/config/serializer/Document.Group.xml
  63. 7
    0
      src/Application/Sonata/UserBundle/Resources/config/serializer/Document.User.xml
  64. 7
    0
      src/Application/Sonata/UserBundle/Resources/config/serializer/Entity.Group.xml
  65. 7
    0
      src/Application/Sonata/UserBundle/Resources/config/serializer/Entity.User.xml
  66. 192
    0
      symfony.lock
  67. 0
    0
      translations/.gitignore

+ 7
- 0
.env.dist View File

@@ -15,3 +15,10 @@ APP_SECRET=c78ebf740b9db52319c2c0a201923d62
15 15
 # Configure your db driver and server_version in config/packages/doctrine.yaml
16 16
 DATABASE_URL=mysql://db_user:db_password@127.0.0.1:3306/db_name
17 17
 ###< doctrine/doctrine-bundle ###
18
+
19
+###> symfony/swiftmailer-bundle ###
20
+# For Gmail as a transport, use: "gmail://username:password@localhost"
21
+# For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode="
22
+# Delivery is disabled by default via "null://localhost"
23
+MAILER_URL=null://localhost
24
+###< symfony/swiftmailer-bundle ###

+ 5
- 0
composer.json View File

@@ -5,12 +5,17 @@
5 5
         "php": "^7.1.3",
6 6
         "ext-ctype": "*",
7 7
         "ext-iconv": "*",
8
+        "sonata-project/admin-bundle": "^3.38",
9
+        "sonata-project/doctrine-orm-admin-bundle": "^3.6",
10
+        "sonata-project/media-bundle": "^3.15",
11
+        "sonata-project/user-bundle": "^4.2",
8 12
         "symfony/console": "^4.1",
9 13
         "symfony/flex": "^1.0",
10 14
         "symfony/framework-bundle": "^4.1",
11 15
         "symfony/lts": "^4@dev",
12 16
         "symfony/maker-bundle": "^1.6",
13 17
         "symfony/orm-pack": "^1.0",
18
+        "symfony/swiftmailer-bundle": "^3.2",
14 19
         "symfony/twig-bundle": "^4.1",
15 20
         "symfony/yaml": "^4.1"
16 21
     },

+ 3822
- 758
composer.lock
File diff suppressed because it is too large
View File


+ 15
- 0
config/bundles.php View File

@@ -8,4 +8,19 @@ return [
8 8
     Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle::class => ['all' => true],
9 9
     Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
10 10
     Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
11
+    Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
12
+    Sonata\DatagridBundle\SonataDatagridBundle::class => ['all' => true],
13
+    Sonata\CoreBundle\SonataCoreBundle::class => ['all' => true],
14
+    Sonata\BlockBundle\SonataBlockBundle::class => ['all' => true],
15
+    Knp\Bundle\MenuBundle\KnpMenuBundle::class => ['all' => true],
16
+    Sonata\AdminBundle\SonataAdminBundle::class => ['all' => true],
17
+    Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle::class => ['all' => true],
18
+    Sonata\EasyExtendsBundle\SonataEasyExtendsBundle::class => ['all' => true],
19
+    JMS\SerializerBundle\JMSSerializerBundle::class => ['all' => true],
20
+    Sonata\MediaBundle\SonataMediaBundle::class => ['all' => true],
21
+    App\Application\Sonata\MediaBundle\ApplicationSonataMediaBundle::class => ['all' => true],
22
+    FOS\UserBundle\FOSUserBundle::class => ['all' => true],
23
+    Sonata\UserBundle\SonataUserBundle::class => ['all' => true],
24
+    Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle::class => ['all' => true],
25
+    App\Application\Sonata\UserBundle\ApplicationSonataUserBundle::class => ['all' => true],
11 26
 ];

+ 7
- 0
config/packages/dev/jms_serializer.yaml View File

@@ -0,0 +1,7 @@
1
+jms_serializer:
2
+    visitors:
3
+        json:
4
+            options:
5
+                - JSON_PRETTY_PRINT
6
+                - JSON_UNESCAPED_SLASHES
7
+                - JSON_PRESERVE_ZERO_FRACTION

+ 4
- 0
config/packages/dev/swiftmailer.yaml View File

@@ -0,0 +1,4 @@
1
+# See https://symfony.com/doc/current/email/dev_environment.html
2
+swiftmailer:
3
+    # send all emails to a specific address
4
+    #delivery_addresses: ['me@example.com']

+ 7
- 0
config/packages/doctrine.yaml View File

@@ -14,6 +14,8 @@ doctrine:
14 14
         default_table_options:
15 15
             charset: utf8mb4
16 16
             collate: utf8mb4_unicode_ci
17
+        types:
18
+            json: Sonata\Doctrine\Types\JsonType
17 19
 
18 20
         url: '%env(resolve:DATABASE_URL)%'
19 21
     orm:
@@ -27,3 +29,8 @@ doctrine:
27 29
                 dir: '%kernel.project_dir%/src/Entity'
28 30
                 prefix: 'App\Entity'
29 31
                 alias: App
32
+            ApplicationSonataMediaBundle: ~
33
+            SonataMediaBundle: ~
34
+            ApplicationSonataUserBundle: ~
35
+            SonataUserBundle: ~
36
+            FOSUserBundle: ~

+ 12
- 0
config/packages/fos_user.yaml View File

@@ -0,0 +1,12 @@
1
+fos_user:
2
+    db_driver:      orm # can be orm or odm
3
+    firewall_name:  main
4
+    user_class:     App\Application\Sonata\UserBundle\Entity\User
5
+    group:
6
+        group_class:   App\Application\Sonata\UserBundle\Entity\Group
7
+        group_manager: sonata.user.orm.group_manager # If you're using doctrine orm (use sonata.user.mongodb.group_manager for mongodb)
8
+    service:
9
+        user_manager: sonata.user.orm.user_manager
10
+    from_email:
11
+        address: "%mailer_email%"
12
+        sender_name: "%mailer_user%"

+ 3
- 0
config/packages/framework.yaml View File

@@ -28,3 +28,6 @@ framework:
28 28
 
29 29
         # APCu (not recommended with heavy random-write workloads as memory fragmentation can cause perf issues)
30 30
         #app: cache.adapter.apcu
31
+
32
+    templating:
33
+        engines: ['twig']

+ 13
- 0
config/packages/jms_serializer.yaml View File

@@ -0,0 +1,13 @@
1
+jms_serializer:
2
+    visitors:
3
+        xml:
4
+            format_output: '%kernel.debug%'
5
+#    metadata:
6
+#        auto_detection: false
7
+#        directories:
8
+#            any-name:
9
+#                namespace_prefix: "My\\FooBundle"
10
+#                path: "@MyFooBundle/Resources/config/serializer"
11
+#            another-name:
12
+#                namespace_prefix: "My\\BarBundle"
13
+#                path: "@MyBarBundle/Resources/config/serializer"

+ 6
- 0
config/packages/prod/jms_serializer.yaml View File

@@ -0,0 +1,6 @@
1
+jms_serializer:
2
+    visitors:
3
+        json:
4
+            options:
5
+                - JSON_UNESCAPED_SLASHES
6
+                - JSON_PRESERVE_ZERO_FRACTION

+ 62
- 0
config/packages/security.yaml View File

@@ -0,0 +1,62 @@
1
+security:
2
+    role_hierarchy:
3
+        ROLE_ADMIN:       [ROLE_USER, ROLE_SONATA_ADMIN]
4
+        ROLE_SUPER_ADMIN: [ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
5
+        SONATA:
6
+            - ROLE_SONATA_PAGE_ADMIN_PAGE_EDIT  # if you are using acl then this line must be commented
7
+    encoders:
8
+        FOS\UserBundle\Model\UserInterface: bcrypt
9
+    providers:
10
+        fos_userbundle:
11
+            id: fos_user.user_provider.username
12
+    firewalls:
13
+        # Disabling the security for the web debug toolbar, the profiler and Assetic.
14
+        dev:
15
+            pattern:  ^/(_(profiler|wdt)|css|images|js)/
16
+            security: false
17
+
18
+        # -> custom firewall for the admin area of the URL
19
+        admin:
20
+            pattern:            /admin(.*)
21
+            context:            user
22
+            form_login:
23
+                provider:       fos_userbundle
24
+                login_path:     /admin/login
25
+                use_forward:    false
26
+                check_path:     /admin/login_check
27
+                failure_path:   null
28
+            logout:
29
+                path:           /admin/logout
30
+                target:         /admin/login
31
+            anonymous:          true
32
+
33
+        # -> end custom configuration
34
+
35
+        # default login area for standard users
36
+
37
+        # This firewall is used to handle the public login area
38
+        # This part is handled by the FOS User Bundle
39
+        main:
40
+            pattern:             .*
41
+            context:             user
42
+            form_login:
43
+                provider:       fos_userbundle
44
+                login_path:     /login
45
+                use_forward:    false
46
+                check_path:     /login_check
47
+                failure_path:   null
48
+            logout:             true
49
+            anonymous:          true
50
+
51
+    access_control:
52
+        # Admin login page needs to be accessed without credential
53
+        - { path: ^/admin/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
54
+        - { path: ^/admin/logout$, role: IS_AUTHENTICATED_ANONYMOUSLY }
55
+        - { path: ^/admin/login_check$, role: IS_AUTHENTICATED_ANONYMOUSLY }
56
+        - { path: ^/admin/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }
57
+
58
+        # Secured part of the site
59
+        # This config requires being logged for the whole site and having the admin role for the admin part.
60
+        # Change these rules to adapt them to your needs
61
+        - { path: ^/admin/, role: [ROLE_ADMIN, ROLE_SONATA_ADMIN] }
62
+        - { path: ^/.*, role: IS_AUTHENTICATED_ANONYMOUSLY }

+ 28
- 0
config/packages/sonata_admin.yaml View File

@@ -0,0 +1,28 @@
1
+sonata_admin:
2
+    title: 'Sonata Admin'
3
+    dashboard:
4
+        blocks:
5
+        - { type: sonata.admin.block.admin_list, position: left }
6
+        groups:
7
+            sonata.admin.user:
8
+                keep_open:            true
9
+                label:                'User settings'
10
+                icon:                 '<i class="fa fa-users"></i>'
11
+                items:
12
+                - sonata.user.admin.user
13
+                - sonata.user.admin.group
14
+                roles: [ ROLE_DISTRIBUTOR ]
15
+#            sonata.admin.group.content:
16
+#                keep_open:            false
17
+#                label:                sonata_media
18
+#                label_catalogue:      SonataMediaBundle
19
+#                icon:                 '<i class="fa fa-image"></i>'
20
+#                items:
21
+#                - sonata.media.admin.media
22
+#                - sonata.media.admin.gallery
23
+#                roles: [ ROLE_SUPER_ADMIN ]
24
+
25
+sonata_block:
26
+    blocks:
27
+        sonata.admin.block.admin_list:
28
+            contexts: [admin]

+ 4
- 0
config/packages/sonata_core.yaml View File

@@ -0,0 +1,4 @@
1
+sonata_core:
2
+    form:
3
+        mapping:
4
+            enabled: false

+ 29
- 0
config/packages/sonata_media.yaml View File

@@ -0,0 +1,29 @@
1
+sonata_media:
2
+    default_context: default
3
+    contexts:
4
+        default:
5
+            providers:
6
+                - sonata.media.provider.dailymotion
7
+                - sonata.media.provider.youtube
8
+                - sonata.media.provider.image
9
+                - sonata.media.provider.file
10
+                - sonata.media.provider.vimeo
11
+
12
+            formats:
13
+                small: { width: 100 , quality: 70}
14
+                big:   { width: 500 , quality: 70}
15
+
16
+    cdn:
17
+        server:
18
+            path: /upload/media
19
+
20
+    filesystem:
21
+        local:
22
+            # Directory for uploads should be writable
23
+            directory: "%kernel.project_dir%/public/upload/media"
24
+            create: false
25
+
26
+    class:
27
+        media: App\Application\Sonata\MediaBundle\Entity\Media
28
+        gallery: App\Application\Sonata\MediaBundle\Entity\Gallery
29
+        gallery_has_media: App\Application\Sonata\MediaBundle\Entity\GalleryHasMedia

+ 6
- 0
config/packages/sonata_user.yaml View File

@@ -0,0 +1,6 @@
1
+sonata_user:
2
+    security_acl: false
3
+    manager_type: orm # can be orm or mongodb
4
+    class:
5
+        user: App\Application\Sonata\UserBundle\Entity\User
6
+        group: App\Application\Sonata\UserBundle\Entity\Group

+ 3
- 0
config/packages/swiftmailer.yaml View File

@@ -0,0 +1,3 @@
1
+swiftmailer:
2
+    url: '%env(MAILER_URL)%'
3
+    spool: { type: 'memory' }

+ 2
- 0
config/packages/test/swiftmailer.yaml View File

@@ -0,0 +1,2 @@
1
+swiftmailer:
2
+    disable_delivery: true

+ 7
- 0
config/packages/translation.yaml View File

@@ -0,0 +1,7 @@
1
+framework:
2
+    default_locale: '%locale%'
3
+    translator:
4
+        paths:
5
+            - '%kernel.project_dir%/translations'
6
+        fallbacks:
7
+            - '%locale%'

+ 11
- 0
config/packages/twig_extensions.yaml View File

@@ -0,0 +1,11 @@
1
+services:
2
+    _defaults:
3
+        public: false
4
+        autowire: true
5
+        autoconfigure: true
6
+
7
+    # Uncomment any lines below to activate that Twig extension
8
+    #Twig\Extensions\ArrayExtension: ~
9
+    #Twig\Extensions\DateExtension: ~
10
+    #Twig\Extensions\IntlExtension: ~
11
+    #Twig\Extensions\TextExtension: ~

+ 3
- 0
config/packages/validator.yaml View File

@@ -0,0 +1,3 @@
1
+framework:
2
+    validation:
3
+        email_validation_mode: html5

+ 8
- 0
config/routes/sonata_admin.yaml View File

@@ -0,0 +1,8 @@
1
+admin_area:
2
+    resource: "@SonataAdminBundle/Resources/config/routing/sonata_admin.xml"
3
+    prefix: /admin
4
+
5
+_sonata_admin:
6
+    resource: .
7
+    type: sonata_admin
8
+    prefix: /admin

+ 7
- 0
config/routes/sonata_media.yaml View File

@@ -0,0 +1,7 @@
1
+sonata_media_gallery:
2
+    resource: '@SonataMediaBundle/Resources/config/routing/gallery.xml'
3
+    prefix: /media/gallery
4
+
5
+sonata_media:
6
+    resource: '@SonataMediaBundle/Resources/config/routing/media.xml'
7
+    prefix: /media

+ 7
- 0
config/routes/sonata_user.yaml View File

@@ -0,0 +1,7 @@
1
+sonata_user_admin_security:
2
+    resource: '@SonataUserBundle/Resources/config/routing/admin_security.xml'
3
+    prefix: /admin
4
+
5
+sonata_user_admin_resetting:
6
+    resource: '@SonataUserBundle/Resources/config/routing/admin_resetting.xml'
7
+    prefix: /admin/resetting

+ 4
- 1
config/services.yaml View File

@@ -4,6 +4,9 @@
4 4
 # Put parameters here that don't need to change on each machine where the app is deployed
5 5
 # https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
6 6
 parameters:
7
+    locale: 'en'
8
+    mailer_user: Lang
9
+    mailer_email: langlasz@gmail.com
7 10
 
8 11
 services:
9 12
     # default configuration for services in *this* file
@@ -18,7 +21,7 @@ services:
18 21
     # this creates a service per class whose id is the fully-qualified class name
19 22
     App\:
20 23
         resource: '../src/*'
21
-        exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
24
+        exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Application,Kernel.php}'
22 25
 
23 26
     # controllers are imported separately to make sure services can be injected
24 27
     # as action arguments even if you don't extend any base controller class

+ 0
- 0
src/Admin/.gitignore View File


+ 24
- 0
src/Application/Sonata/MediaBundle/ApplicationSonataMediaBundle.php View File

@@ -0,0 +1,24 @@
1
+<?php
2
+
3
+namespace App\Application\Sonata\MediaBundle;
4
+
5
+use Symfony\Component\HttpKernel\Bundle\Bundle;
6
+
7
+/**
8
+ * This file has been generated by the SonataEasyExtendsBundle.
9
+ *
10
+ * @link https://sonata-project.org/easy-extends
11
+ *
12
+ * References:
13
+ * @link http://symfony.com/doc/current/book/bundles.html
14
+ */
15
+class ApplicationSonataMediaBundle extends Bundle
16
+{
17
+    /**
18
+     * {@inheritdoc}
19
+     */
20
+    public function getParent()
21
+    {
22
+        return 'SonataMediaBundle';
23
+    }
24
+}

+ 31
- 0
src/Application/Sonata/MediaBundle/Document/Gallery.php View File

@@ -0,0 +1,31 @@
1
+<?php
2
+
3
+namespace App\Application\Sonata\MediaBundle\Document;
4
+
5
+use Sonata\MediaBundle\Document\BaseGallery as BaseGallery;
6
+
7
+/**
8
+ * This file has been generated by the SonataEasyExtendsBundle.
9
+ *
10
+ * @link https://sonata-project.org/easy-extends
11
+ *
12
+ * References:
13
+ * @link http://www.doctrine-project.org/docs/mongodb_odm/1.0/en/reference/working-with-objects.html
14
+ */
15
+class Gallery extends BaseGallery
16
+{
17
+    /**
18
+     * @var int $id
19
+     */
20
+    protected $id;
21
+
22
+    /**
23
+     * Get id.
24
+     *
25
+     * @return int $id
26
+     */
27
+    public function getId()
28
+    {
29
+        return $this->id;
30
+    }
31
+}

+ 31
- 0
src/Application/Sonata/MediaBundle/Document/Media.php View File

@@ -0,0 +1,31 @@
1
+<?php
2
+
3
+namespace App\Application\Sonata\MediaBundle\Document;
4
+
5
+use Sonata\MediaBundle\Document\BaseMedia as BaseMedia;
6
+
7
+/**
8
+ * This file has been generated by the SonataEasyExtendsBundle.
9
+ *
10
+ * @link https://sonata-project.org/easy-extends
11
+ *
12
+ * References:
13
+ * @link http://www.doctrine-project.org/docs/mongodb_odm/1.0/en/reference/working-with-objects.html
14
+ */
15
+class Media extends BaseMedia
16
+{
17
+    /**
18
+     * @var int $id
19
+     */
20
+    protected $id;
21
+
22
+    /**
23
+     * Get id.
24
+     *
25
+     * @return int $id
26
+     */
27
+    public function getId()
28
+    {
29
+        return $this->id;
30
+    }
31
+}

+ 31
- 0
src/Application/Sonata/MediaBundle/Entity/Gallery.php View File

@@ -0,0 +1,31 @@
1
+<?php
2
+
3
+namespace App\Application\Sonata\MediaBundle\Entity;
4
+
5
+use Sonata\MediaBundle\Entity\BaseGallery as BaseGallery;
6
+
7
+/**
8
+ * This file has been generated by the SonataEasyExtendsBundle.
9
+ *
10
+ * @link https://sonata-project.org/easy-extends
11
+ *
12
+ * References:
13
+ * @link http://www.doctrine-project.org/projects/orm/2.0/docs/reference/working-with-objects/en
14
+ */
15
+class Gallery extends BaseGallery
16
+{
17
+    /**
18
+     * @var int $id
19
+     */
20
+    protected $id;
21
+
22
+    /**
23
+     * Get id.
24
+     *
25
+     * @return int $id
26
+     */
27
+    public function getId()
28
+    {
29
+        return $this->id;
30
+    }
31
+}

+ 31
- 0
src/Application/Sonata/MediaBundle/Entity/GalleryHasMedia.php View File

@@ -0,0 +1,31 @@
1
+<?php
2
+
3
+namespace App\Application\Sonata\MediaBundle\Entity;
4
+
5
+use Sonata\MediaBundle\Entity\BaseGalleryHasMedia as BaseGalleryHasMedia;
6
+
7
+/**
8
+ * This file has been generated by the SonataEasyExtendsBundle.
9
+ *
10
+ * @link https://sonata-project.org/easy-extends
11
+ *
12
+ * References:
13
+ * @link http://www.doctrine-project.org/projects/orm/2.0/docs/reference/working-with-objects/en
14
+ */
15
+class GalleryHasMedia extends BaseGalleryHasMedia
16
+{
17
+    /**
18
+     * @var int $id
19
+     */
20
+    protected $id;
21
+
22
+    /**
23
+     * Get id.
24
+     *
25
+     * @return int $id
26
+     */
27
+    public function getId()
28
+    {
29
+        return $this->id;
30
+    }
31
+}

+ 31
- 0
src/Application/Sonata/MediaBundle/Entity/Media.php View File

@@ -0,0 +1,31 @@
1
+<?php
2
+
3
+namespace App\Application\Sonata\MediaBundle\Entity;
4
+
5
+use Sonata\MediaBundle\Entity\BaseMedia as BaseMedia;
6
+
7
+/**
8
+ * This file has been generated by the SonataEasyExtendsBundle.
9
+ *
10
+ * @link https://sonata-project.org/easy-extends
11
+ *
12
+ * References:
13
+ * @link http://www.doctrine-project.org/projects/orm/2.0/docs/reference/working-with-objects/en
14
+ */
15
+class Media extends BaseMedia
16
+{
17
+    /**
18
+     * @var int $id
19
+     */
20
+    protected $id;
21
+
22
+    /**
23
+     * Get id.
24
+     *
25
+     * @return int $id
26
+     */
27
+    public function getId()
28
+    {
29
+        return $this->id;
30
+    }
31
+}

+ 31
- 0
src/Application/Sonata/MediaBundle/PHPCR/Gallery.php View File

@@ -0,0 +1,31 @@
1
+<?php
2
+
3
+namespace App\Application\Sonata\MediaBundle\PHPCR;
4
+
5
+use Sonata\MediaBundle\PHPCR\BaseGallery as BaseGallery;
6
+
7
+/**
8
+ * This file has been generated by the SonataEasyExtendsBundle.
9
+ *
10
+ * @link https://sonata-project.org/easy-extends
11
+ *
12
+ * References:
13
+ * @link http://docs.doctrine-project.org/projects/doctrine-phpcr-odm/en/latest/index.html
14
+ */
15
+class Gallery extends BaseGallery
16
+{
17
+    /**
18
+     * @var int $id
19
+     */
20
+    protected $id;
21
+
22
+    /**
23
+     * Get id.
24
+     *
25
+     * @return int $id
26
+     */
27
+    public function getId()
28
+    {
29
+        return $this->id;
30
+    }
31
+}

+ 31
- 0
src/Application/Sonata/MediaBundle/PHPCR/GalleryHasMedia.php View File

@@ -0,0 +1,31 @@
1
+<?php
2
+
3
+namespace App\Application\Sonata\MediaBundle\PHPCR;
4
+
5
+use Sonata\MediaBundle\PHPCR\BaseGalleryHasMedia as BaseGalleryHasMedia;
6
+
7
+/**
8
+ * This file has been generated by the SonataEasyExtendsBundle.
9
+ *
10
+ * @link https://sonata-project.org/easy-extends
11
+ *
12
+ * References:
13
+ * @link http://docs.doctrine-project.org/projects/doctrine-phpcr-odm/en/latest/index.html
14
+ */
15
+class GalleryHasMedia extends BaseGalleryHasMedia
16
+{
17
+    /**
18
+     * @var int $id
19
+     */
20
+    protected $id;
21
+
22
+    /**
23
+     * Get id.
24
+     *
25
+     * @return int $id
26
+     */
27
+    public function getId()
28
+    {
29
+        return $this->id;
30
+    }
31
+}

+ 17
- 0
src/Application/Sonata/MediaBundle/PHPCR/GalleryHasMediaRepository.php View File

@@ -0,0 +1,17 @@
1
+<?php
2
+
3
+namespace App\Application\Sonata\MediaBundle\PHPCR;
4
+
5
+use Sonata\MediaBundle\PHPCR\BaseGalleryHasMediaRepository;
6
+
7
+/**
8
+ * This file has been generated by the SonataEasyExtendsBundle.
9
+ *
10
+ * @link https://sonata-project.org/easy-extends
11
+ *
12
+ * References :
13
+ * @link http://www.doctrine-project.org/docs/mongodb_odm/1.0/en/reference/query-builder-api.html
14
+ */
15
+class GalleryHasMediaRepository extends BaseGalleryHasMediaRepository
16
+{
17
+}

+ 17
- 0
src/Application/Sonata/MediaBundle/PHPCR/GalleryRepository.php View File

@@ -0,0 +1,17 @@
1
+<?php
2
+
3
+namespace App\Application\Sonata\MediaBundle\PHPCR;
4
+
5
+use Sonata\MediaBundle\PHPCR\BaseGalleryRepository;
6
+
7
+/**
8
+ * This file has been generated by the SonataEasyExtendsBundle.
9
+ *
10
+ * @link https://sonata-project.org/easy-extends
11
+ *
12
+ * References :
13
+ * @link http://www.doctrine-project.org/docs/mongodb_odm/1.0/en/reference/query-builder-api.html
14
+ */
15
+class GalleryRepository extends BaseGalleryRepository
16
+{
17
+}

+ 31
- 0
src/Application/Sonata/MediaBundle/PHPCR/Media.php View File

@@ -0,0 +1,31 @@
1
+<?php
2
+
3
+namespace App\Application\Sonata\MediaBundle\PHPCR;
4
+
5
+use Sonata\MediaBundle\PHPCR\BaseMedia as BaseMedia;
6
+
7
+/**
8
+ * This file has been generated by the SonataEasyExtendsBundle.
9
+ *
10
+ * @link https://sonata-project.org/easy-extends
11
+ *
12
+ * References:
13
+ * @link http://docs.doctrine-project.org/projects/doctrine-phpcr-odm/en/latest/index.html
14
+ */
15
+class Media extends BaseMedia
16
+{
17
+    /**
18
+     * @var int $id
19
+     */
20
+    protected $id;
21
+
22
+    /**
23
+     * Get id.
24
+     *
25
+     * @return int $id
26
+     */
27
+    public function getId()
28
+    {
29
+        return $this->id;
30
+    }
31
+}

+ 17
- 0
src/Application/Sonata/MediaBundle/PHPCR/MediaRepository.php View File

@@ -0,0 +1,17 @@
1
+<?php
2
+
3
+namespace App\Application\Sonata\MediaBundle\PHPCR;
4
+
5
+use Sonata\MediaBundle\PHPCR\BaseMediaRepository;
6
+
7
+/**
8
+ * This file has been generated by the SonataEasyExtendsBundle.
9
+ *
10
+ * @link https://sonata-project.org/easy-extends
11
+ *
12
+ * References :
13
+ * @link http://www.doctrine-project.org/docs/mongodb_odm/1.0/en/reference/query-builder-api.html
14
+ */
15
+class MediaRepository extends BaseMediaRepository
16
+{
17
+}

+ 17
- 0
src/Application/Sonata/MediaBundle/Resources/config/doctrine/Gallery.mongodb.xml View File

@@ -0,0 +1,17 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<doctrine-mongo-mapping xmlns="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping"
3
+                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+                        xsi:schemaLocation="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping
5
+                        http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping.xsd">
6
+    <!--
7
+         This file has been generated by the EasyExtends bundle ( https://sonata-project.org/easy-extends )
8
+
9
+         References :
10
+            xsd                  : https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd
11
+            xml mapping          : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/xml-mapping/en
12
+            association mapping  : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/association-mapping/en
13
+    -->
14
+    <document name="App\Application\Sonata\MediaBundle\Document\Gallery" >
15
+        <field fieldName="id" id="true" />
16
+    </document>
17
+</doctrine-mongo-mapping>

+ 21
- 0
src/Application/Sonata/MediaBundle/Resources/config/doctrine/Gallery.orm.xml View File

@@ -0,0 +1,21 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xsi="http://www.w3.org/2001/XMLSchema-instance" schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
3
+    <!--
4
+         This file has been generated by the EasyExtends bundle ( https://sonata-project.org/easy-extends )
5
+
6
+         References :
7
+            xsd                  : https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd
8
+            xml mapping          : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/xml-mapping/en
9
+            association mapping  : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/association-mapping/en
10
+    -->
11
+    <entity
12
+        name="App\Application\Sonata\MediaBundle\Entity\Gallery"
13
+        table="media__gallery"
14
+        >
15
+
16
+        <id name="id" type="integer" column="id">
17
+            <generator strategy="AUTO"/>
18
+        </id>
19
+
20
+    </entity>
21
+</doctrine-mapping>

+ 26
- 0
src/Application/Sonata/MediaBundle/Resources/config/doctrine/Gallery.phpcr.xml View File

@@ -0,0 +1,26 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<doctrine-mapping
3
+    xmlns="http://doctrine-project.org/schemas/phpcr-odm/phpcr-mapping"
4
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
+    xsi:schemaLocation="http://doctrine-project.org/schemas/phpcr-odm/phpcr-mapping
6
+    https://github.com/doctrine/phpcr-odm/raw/master/doctrine-phpcr-odm-mapping.xsd"
7
+    >
8
+    <!--
9
+         This file has been generated by the EasyExtends bundle ( https://sonata-project.org/easy-extends )
10
+
11
+         References :
12
+            xsd                  : https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd
13
+            xml mapping          : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/xml-mapping/en
14
+            association mapping  : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/association-mapping/en
15
+    -->
16
+
17
+    <document name="App\Application\Sonata\MediaBundle\PHPCR\Gallery"
18
+              repository-class="App\Application\Sonata\MediaBundle\PHPCR\GalleryRepository">
19
+
20
+        <id name="id">
21
+            <generator strategy="REPOSITORY" />
22
+        </id>
23
+
24
+    </document>
25
+
26
+</doctrine-mapping>

+ 21
- 0
src/Application/Sonata/MediaBundle/Resources/config/doctrine/GalleryHasMedia.orm.xml View File

@@ -0,0 +1,21 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xsi="http://www.w3.org/2001/XMLSchema-instance" schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
3
+    <!--
4
+         This file has been generated by the EasyExtends bundle ( https://sonata-project.org/easy-extends )
5
+
6
+         References :
7
+            xsd                  : https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd
8
+            xml mapping          : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/xml-mapping/en
9
+            association mapping  : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/association-mapping/en
10
+    -->
11
+    <entity
12
+        name="App\Application\Sonata\MediaBundle\Entity\GalleryHasMedia"
13
+        table="media__gallery_media"
14
+        >
15
+
16
+        <id name="id" type="integer" column="id">
17
+            <generator strategy="AUTO"/>
18
+        </id>
19
+
20
+    </entity>
21
+</doctrine-mapping>

+ 28
- 0
src/Application/Sonata/MediaBundle/Resources/config/doctrine/GalleryHasMedia.phpcr.xml View File

@@ -0,0 +1,28 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<doctrine-mapping
3
+    xmlns="http://doctrine-project.org/schemas/phpcr-odm/phpcr-mapping"
4
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
+    xsi:schemaLocation="http://doctrine-project.org/schemas/phpcr-odm/phpcr-mapping
6
+    https://github.com/doctrine/phpcr-odm/raw/master/doctrine-phpcr-odm-mapping.xsd"
7
+    >
8
+    <!--
9
+         This file has been generated by the EasyExtends bundle ( https://sonata-project.org/easy-extends )
10
+
11
+         References :
12
+            xsd                  : https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd
13
+            xml mapping          : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/xml-mapping/en
14
+            association mapping  : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/association-mapping/en
15
+    -->
16
+
17
+    <document name="App\Application\Sonata\MediaBundle\PHPCR\GalleryHasMedia"
18
+              repository-class="App\Application\Sonata\MediaBundle\PHPCR\GalleryHasMediaRepository">
19
+
20
+        <id name="id">
21
+            <generator strategy="REPOSITORY" />
22
+        </id>
23
+
24
+        <reference-many name="media" target-document="App\Application\Sonata\MediaBundle\PHPCR\Media" />
25
+
26
+    </document>
27
+
28
+</doctrine-mapping>

+ 17
- 0
src/Application/Sonata/MediaBundle/Resources/config/doctrine/Media.mongodb.xml View File

@@ -0,0 +1,17 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<doctrine-mongo-mapping xmlns="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping"
3
+                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+                        xsi:schemaLocation="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping
5
+                        http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping.xsd">
6
+    <!--
7
+         This file has been generated by the EasyExtends bundle ( https://sonata-project.org/easy-extends )
8
+
9
+         References :
10
+            xsd                  : https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd
11
+            xml mapping          : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/xml-mapping/en
12
+            association mapping  : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/association-mapping/en
13
+    -->
14
+    <document name="App\Application\Sonata\MediaBundle\Document\Media" >
15
+        <field fieldName="id" id="true" />
16
+    </document>
17
+</doctrine-mongo-mapping>

+ 21
- 0
src/Application/Sonata/MediaBundle/Resources/config/doctrine/Media.orm.xml View File

@@ -0,0 +1,21 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xsi="http://www.w3.org/2001/XMLSchema-instance" schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
3
+    <!--
4
+         This file has been generated by the EasyExtends bundle ( https://sonata-project.org/easy-extends )
5
+
6
+         References :
7
+            xsd                  : https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd
8
+            xml mapping          : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/xml-mapping/en
9
+            association mapping  : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/association-mapping/en
10
+    -->
11
+    <entity
12
+        name="App\Application\Sonata\MediaBundle\Entity\Media"
13
+        table="media__media"
14
+        >
15
+
16
+        <id name="id" type="integer" column="id">
17
+            <generator strategy="AUTO"/>
18
+        </id>
19
+
20
+    </entity>
21
+</doctrine-mapping>

+ 26
- 0
src/Application/Sonata/MediaBundle/Resources/config/doctrine/Media.phpcr.xml View File

@@ -0,0 +1,26 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<doctrine-mapping
3
+    xmlns="http://doctrine-project.org/schemas/phpcr-odm/phpcr-mapping"
4
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
+    xsi:schemaLocation="http://doctrine-project.org/schemas/phpcr-odm/phpcr-mapping
6
+    https://github.com/doctrine/phpcr-odm/raw/master/doctrine-phpcr-odm-mapping.xsd"
7
+    >
8
+    <!--
9
+         This file has been generated by the EasyExtends bundle ( https://sonata-project.org/easy-extends )
10
+
11
+         References :
12
+            xsd                  : https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd
13
+            xml mapping          : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/xml-mapping/en
14
+            association mapping  : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/association-mapping/en
15
+    -->
16
+
17
+    <document name="App\Application\Sonata\MediaBundle\PHPCR\Media"
18
+              repository-class="App\Application\Sonata\MediaBundle\PHPCR\MediaRepository" >
19
+
20
+        <id name="id">
21
+            <generator strategy="REPOSITORY" />
22
+        </id>
23
+
24
+    </document>
25
+
26
+</doctrine-mapping>

+ 7
- 0
src/Application/Sonata/MediaBundle/Resources/config/serializer/Document.Gallery.xml View File

@@ -0,0 +1,7 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<serializer>
3
+    <!-- This file has been generated by the SonataEasyExtendsBundle: https://sonata-project.org/bundles/easy-extends -->
4
+    <class name="App\Application\Sonata\MediaBundle\Document\Gallery" exclusion-policy="all" xml-root-name="_gallery">
5
+        <property xml-attribute-map="true" name="id" type="integer" expose="true" since-version="1.0" groups="sonata_api_read,sonata_api_write,sonata_search"/>
6
+    </class>
7
+</serializer>

+ 7
- 0
src/Application/Sonata/MediaBundle/Resources/config/serializer/Document.GalleryHasMedia.xml View File

@@ -0,0 +1,7 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<serializer>
3
+    <!-- This file has been generated by the SonataEasyExtendsBundle: https://sonata-project.org/bundles/easy-extends -->
4
+    <class name="App\Application\Sonata\MediaBundle\Document\GalleryHasMedia" exclusion-policy="all" xml-root-name="_gallery_has_media">
5
+        <property xml-attribute-map="true" name="id" type="integer" expose="true" since-version="1.0" groups="sonata_api_read,sonata_api_write,sonata_search"/>
6
+    </class>
7
+</serializer>

+ 7
- 0
src/Application/Sonata/MediaBundle/Resources/config/serializer/Document.Media.xml View File

@@ -0,0 +1,7 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<serializer>
3
+    <!-- This file has been generated by the SonataEasyExtendsBundle: https://sonata-project.org/bundles/easy-extends -->
4
+    <class name="App\Application\Sonata\MediaBundle\Document\Media" exclusion-policy="all" xml-root-name="_media">
5
+        <property xml-attribute-map="true" name="id" type="integer" expose="true" since-version="1.0" groups="sonata_api_read,sonata_api_write,sonata_search"/>
6
+    </class>
7
+</serializer>

+ 7
- 0
src/Application/Sonata/MediaBundle/Resources/config/serializer/Entity.Gallery.xml View File

@@ -0,0 +1,7 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<serializer>
3
+    <!-- This file has been generated by the SonataEasyExtendsBundle: https://sonata-project.org/bundles/easy-extends -->
4
+    <class name="App\Application\Sonata\MediaBundle\Entity\Gallery" exclusion-policy="all" xml-root-name="_gallery">
5
+        <property xml-attribute-map="true" name="id" type="integer" expose="true" since-version="1.0" groups="sonata_api_read,sonata_api_write,sonata_search"/>
6
+    </class>
7
+</serializer>

+ 7
- 0
src/Application/Sonata/MediaBundle/Resources/config/serializer/Entity.GalleryHasMedia.xml View File

@@ -0,0 +1,7 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<serializer>
3
+    <!-- This file has been generated by the SonataEasyExtendsBundle: https://sonata-project.org/bundles/easy-extends -->
4
+    <class name="App\Application\Sonata\MediaBundle\Entity\GalleryHasMedia" exclusion-policy="all" xml-root-name="_gallery_has_media">
5
+        <property xml-attribute-map="true" name="id" type="integer" expose="true" since-version="1.0" groups="sonata_api_read,sonata_api_write,sonata_search"/>
6
+    </class>
7
+</serializer>

+ 7
- 0
src/Application/Sonata/MediaBundle/Resources/config/serializer/Entity.Media.xml View File

@@ -0,0 +1,7 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<serializer>
3
+    <!-- This file has been generated by the SonataEasyExtendsBundle: https://sonata-project.org/bundles/easy-extends -->
4
+    <class name="App\Application\Sonata\MediaBundle\Entity\Media" exclusion-policy="all" xml-root-name="_media">
5
+        <property xml-attribute-map="true" name="id" type="integer" expose="true" since-version="1.0" groups="sonata_api_read,sonata_api_write,sonata_search"/>
6
+    </class>
7
+</serializer>

+ 24
- 0
src/Application/Sonata/UserBundle/ApplicationSonataUserBundle.php View File

@@ -0,0 +1,24 @@
1
+<?php
2
+
3
+namespace App\Application\Sonata\UserBundle;
4
+
5
+use Symfony\Component\HttpKernel\Bundle\Bundle;
6
+
7
+/**
8
+ * This file has been generated by the SonataEasyExtendsBundle.
9
+ *
10
+ * @link https://sonata-project.org/easy-extends
11
+ *
12
+ * References:
13
+ * @link http://symfony.com/doc/current/book/bundles.html
14
+ */
15
+class ApplicationSonataUserBundle extends Bundle
16
+{
17
+    /**
18
+     * {@inheritdoc}
19
+     */
20
+    public function getParent()
21
+    {
22
+        return 'SonataUserBundle';
23
+    }
24
+}

+ 31
- 0
src/Application/Sonata/UserBundle/Document/Group.php View File

@@ -0,0 +1,31 @@
1
+<?php
2
+
3
+namespace App\Application\Sonata\UserBundle\Document;
4
+
5
+use Sonata\UserBundle\Document\BaseGroup as BaseGroup;
6
+
7
+/**
8
+ * This file has been generated by the SonataEasyExtendsBundle.
9
+ *
10
+ * @link https://sonata-project.org/easy-extends
11
+ *
12
+ * References:
13
+ * @link http://www.doctrine-project.org/docs/mongodb_odm/1.0/en/reference/working-with-objects.html
14
+ */
15
+class Group extends BaseGroup
16
+{
17
+    /**
18
+     * @var int $id
19
+     */
20
+    protected $id;
21
+
22
+    /**
23
+     * Get id.
24
+     *
25
+     * @return int $id
26
+     */
27
+    public function getId()
28
+    {
29
+        return $this->id;
30
+    }
31
+}

+ 31
- 0
src/Application/Sonata/UserBundle/Document/User.php View File

@@ -0,0 +1,31 @@
1
+<?php
2
+
3
+namespace App\Application\Sonata\UserBundle\Document;
4
+
5
+use Sonata\UserBundle\Document\BaseUser as BaseUser;
6
+
7
+/**
8
+ * This file has been generated by the SonataEasyExtendsBundle.
9
+ *
10
+ * @link https://sonata-project.org/easy-extends
11
+ *
12
+ * References:
13
+ * @link http://www.doctrine-project.org/docs/mongodb_odm/1.0/en/reference/working-with-objects.html
14
+ */
15
+class User extends BaseUser
16
+{
17
+    /**
18
+     * @var int $id
19
+     */
20
+    protected $id;
21
+
22
+    /**
23
+     * Get id.
24
+     *
25
+     * @return int $id
26
+     */
27
+    public function getId()
28
+    {
29
+        return $this->id;
30
+    }
31
+}

+ 31
- 0
src/Application/Sonata/UserBundle/Entity/Group.php View File

@@ -0,0 +1,31 @@
1
+<?php
2
+
3
+namespace App\Application\Sonata\UserBundle\Entity;
4
+
5
+use Sonata\UserBundle\Entity\BaseGroup as BaseGroup;
6
+
7
+/**
8
+ * This file has been generated by the SonataEasyExtendsBundle.
9
+ *
10
+ * @link https://sonata-project.org/easy-extends
11
+ *
12
+ * References:
13
+ * @link http://www.doctrine-project.org/projects/orm/2.0/docs/reference/working-with-objects/en
14
+ */
15
+class Group extends BaseGroup
16
+{
17
+    /**
18
+     * @var int $id
19
+     */
20
+    protected $id;
21
+
22
+    /**
23
+     * Get id.
24
+     *
25
+     * @return int $id
26
+     */
27
+    public function getId()
28
+    {
29
+        return $this->id;
30
+    }
31
+}

+ 31
- 0
src/Application/Sonata/UserBundle/Entity/User.php View File

@@ -0,0 +1,31 @@
1
+<?php
2
+
3
+namespace App\Application\Sonata\UserBundle\Entity;
4
+
5
+use Sonata\UserBundle\Entity\BaseUser as BaseUser;
6
+
7
+/**
8
+ * This file has been generated by the SonataEasyExtendsBundle.
9
+ *
10
+ * @link https://sonata-project.org/easy-extends
11
+ *
12
+ * References:
13
+ * @link http://www.doctrine-project.org/projects/orm/2.0/docs/reference/working-with-objects/en
14
+ */
15
+class User extends BaseUser
16
+{
17
+    /**
18
+     * @var int $id
19
+     */
20
+    protected $id;
21
+
22
+    /**
23
+     * Get id.
24
+     *
25
+     * @return int $id
26
+     */
27
+    public function getId()
28
+    {
29
+        return $this->id;
30
+    }
31
+}

+ 13
- 0
src/Application/Sonata/UserBundle/Resources/config/doctrine/Group.mongodb.xml View File

@@ -0,0 +1,13 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<doctrine-mongo-mapping xmlns="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping"
3
+      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+      xsi:schemaLocation="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping
5
+                    http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping.xsd">
6
+
7
+    <document name="App\Application\Sonata\UserBundle\Document\Group" collection="fos_user_group">
8
+
9
+		<field fieldName="id" id="true" strategy="INCREMENT" />
10
+        
11
+    </document>
12
+
13
+</doctrine-mongo-mapping>

+ 15
- 0
src/Application/Sonata/UserBundle/Resources/config/doctrine/Group.orm.xml View File

@@ -0,0 +1,15 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
3
+                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+                  xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
5
+                  http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
6
+
7
+    <entity name="App\Application\Sonata\UserBundle\Entity\Group" table="fos_user__group">
8
+
9
+        <id name="id" column="id" type="integer">
10
+            <generator strategy="AUTO" />
11
+        </id>
12
+
13
+    </entity>
14
+
15
+</doctrine-mapping>

+ 13
- 0
src/Application/Sonata/UserBundle/Resources/config/doctrine/User.mongodb.xml View File

@@ -0,0 +1,13 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<doctrine-mongo-mapping xmlns="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping"
3
+      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+      xsi:schemaLocation="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping
5
+                    http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping.xsd">
6
+
7
+    <document name="App\Application\Sonata\UserBundle\Document\User" collection="fos_user_user" customId="true">
8
+
9
+        <field fieldName="id" id="true" strategy="INCREMENT" />
10
+
11
+    </document>
12
+
13
+</doctrine-mongo-mapping>

+ 15
- 0
src/Application/Sonata/UserBundle/Resources/config/doctrine/User.orm.xml View File

@@ -0,0 +1,15 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
3
+                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+                  xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
5
+                  http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
6
+
7
+    <entity name="App\Application\Sonata\UserBundle\Entity\User" table="fos_user__user">
8
+
9
+        <id name="id" column="id" type="integer">
10
+            <generator strategy="AUTO" />
11
+        </id>
12
+
13
+    </entity>
14
+
15
+</doctrine-mapping>

+ 7
- 0
src/Application/Sonata/UserBundle/Resources/config/serializer/Document.Group.xml View File

@@ -0,0 +1,7 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<serializer>
3
+    <!-- This file has been generated by the SonataEasyExtendsBundle: https://sonata-project.org/bundles/easy-extends -->
4
+    <class name="App\Application\Sonata\UserBundle\Document\Group" exclusion-policy="all" xml-root-name="_group">
5
+        <property xml-attribute-map="true" name="id" type="integer" expose="true" since-version="1.0" groups="sonata_api_read,sonata_api_write,sonata_search"/>
6
+    </class>
7
+</serializer>

+ 7
- 0
src/Application/Sonata/UserBundle/Resources/config/serializer/Document.User.xml View File

@@ -0,0 +1,7 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<serializer>
3
+    <!-- This file has been generated by the SonataEasyExtendsBundle: https://sonata-project.org/bundles/easy-extends -->
4
+    <class name="App\Application\Sonata\UserBundle\Document\User" exclusion-policy="all" xml-root-name="_user">
5
+        <property xml-attribute-map="true" name="id" type="integer" expose="true" since-version="1.0" groups="sonata_api_read,sonata_api_write,sonata_search"/>
6
+    </class>
7
+</serializer>

+ 7
- 0
src/Application/Sonata/UserBundle/Resources/config/serializer/Entity.Group.xml View File

@@ -0,0 +1,7 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<serializer>
3
+    <!-- This file has been generated by the SonataEasyExtendsBundle: https://sonata-project.org/bundles/easy-extends -->
4
+    <class name="App\Application\Sonata\UserBundle\Entity\Group" exclusion-policy="all" xml-root-name="_group">
5
+        <property xml-attribute-map="true" name="id" type="integer" expose="true" since-version="1.0" groups="sonata_api_read,sonata_api_write,sonata_search"/>
6
+    </class>
7
+</serializer>

+ 7
- 0
src/Application/Sonata/UserBundle/Resources/config/serializer/Entity.User.xml View File

@@ -0,0 +1,7 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<serializer>
3
+    <!-- This file has been generated by the SonataEasyExtendsBundle: https://sonata-project.org/bundles/easy-extends -->
4
+    <class name="App\Application\Sonata\UserBundle\Entity\User" exclusion-policy="all" xml-root-name="_user">
5
+        <property xml-attribute-map="true" name="id" type="integer" expose="true" since-version="1.0" groups="sonata_api_read,sonata_api_write,sonata_search"/>
6
+    </class>
7
+</serializer>

+ 192
- 0
symfony.lock View File

@@ -1,4 +1,7 @@
1 1
 {
2
+    "cocur/slugify": {
3
+        "version": "v3.1"
4
+    },
2 5
     "doctrine/annotations": {
3 6
         "version": "1.0",
4 7
         "recipe": {
@@ -65,9 +68,51 @@
65 68
     "doctrine/reflection": {
66 69
         "version": "v1.0.0"
67 70
     },
71
+    "egulias/email-validator": {
72
+        "version": "2.1.5"
73
+    },
74
+    "friendsofsymfony/user-bundle": {
75
+        "version": "v2.1.2"
76
+    },
77
+    "guzzlehttp/psr7": {
78
+        "version": "1.4.2"
79
+    },
80
+    "imagine/imagine": {
81
+        "version": "v0.7.1"
82
+    },
68 83
     "jdorn/sql-formatter": {
69 84
         "version": "v1.2.17"
70 85
     },
86
+    "jms/metadata": {
87
+        "version": "1.6.0"
88
+    },
89
+    "jms/parser-lib": {
90
+        "version": "1.0.0"
91
+    },
92
+    "jms/serializer": {
93
+        "version": "1.13.0"
94
+    },
95
+    "jms/serializer-bundle": {
96
+        "version": "2.0",
97
+        "recipe": {
98
+            "repo": "github.com/symfony/recipes-contrib",
99
+            "branch": "master",
100
+            "version": "2.0",
101
+            "ref": "fe60ce509ef04a3f40da96e3979bc8d9b13b2372"
102
+        }
103
+    },
104
+    "knplabs/gaufrette": {
105
+        "version": "v0.6.0"
106
+    },
107
+    "knplabs/knp-menu": {
108
+        "version": "2.3.0"
109
+    },
110
+    "knplabs/knp-menu-bundle": {
111
+        "version": "v2.2.1"
112
+    },
113
+    "kriswallsmith/buzz": {
114
+        "version": "v0.16.1"
115
+    },
71 116
     "nikic/php-parser": {
72 117
         "version": "v4.0.3"
73 118
     },
@@ -77,21 +122,93 @@
77 122
     "ocramius/proxy-manager": {
78 123
         "version": "2.2.0"
79 124
     },
125
+    "paragonie/random_compat": {
126
+        "version": "v2.0.17"
127
+    },
128
+    "phpcollection/phpcollection": {
129
+        "version": "0.5.0"
130
+    },
131
+    "phpoption/phpoption": {
132
+        "version": "1.5.0"
133
+    },
80 134
     "psr/cache": {
81 135
         "version": "1.0.1"
82 136
     },
83 137
     "psr/container": {
84 138
         "version": "1.0.0"
85 139
     },
140
+    "psr/http-message": {
141
+        "version": "1.0.1"
142
+    },
86 143
     "psr/log": {
87 144
         "version": "1.0.2"
88 145
     },
89 146
     "psr/simple-cache": {
90 147
         "version": "1.0.1"
91 148
     },
149
+    "sonata-project/admin-bundle": {
150
+        "version": "3.31",
151
+        "recipe": {
152
+            "repo": "github.com/symfony/recipes-contrib",
153
+            "branch": "master",
154
+            "version": "3.31",
155
+            "ref": "0e5931df1732e3dccfba42a20853049e5e9db6ae"
156
+        }
157
+    },
158
+    "sonata-project/block-bundle": {
159
+        "version": "3.12.1"
160
+    },
161
+    "sonata-project/cache": {
162
+        "version": "2.0.1"
163
+    },
164
+    "sonata-project/core-bundle": {
165
+        "version": "3.9",
166
+        "recipe": {
167
+            "repo": "github.com/symfony/recipes-contrib",
168
+            "branch": "master",
169
+            "version": "3.9",
170
+            "ref": "2f69bd1995730b73a5211a9707622fb25a925df7"
171
+        }
172
+    },
173
+    "sonata-project/datagrid-bundle": {
174
+        "version": "2.3.1"
175
+    },
176
+    "sonata-project/doctrine-extensions": {
177
+        "version": "1.0.2"
178
+    },
179
+    "sonata-project/doctrine-orm-admin-bundle": {
180
+        "version": "3.6.1"
181
+    },
182
+    "sonata-project/easy-extends-bundle": {
183
+        "version": "2.5.0"
184
+    },
185
+    "sonata-project/exporter": {
186
+        "version": "1.9.1"
187
+    },
188
+    "sonata-project/media-bundle": {
189
+        "version": "3.13",
190
+        "recipe": {
191
+            "repo": "github.com/symfony/recipes-contrib",
192
+            "branch": "master",
193
+            "version": "3.13",
194
+            "ref": "e25412e53b20827db07abb6f2aa0b8e4d26c284c"
195
+        }
196
+    },
197
+    "sonata-project/user-bundle": {
198
+        "version": "4.2.3"
199
+    },
200
+    "swiftmailer/swiftmailer": {
201
+        "version": "v6.1.2"
202
+    },
203
+    "symfony/asset": {
204
+        "version": "v4.1.3"
205
+    },
92 206
     "symfony/cache": {
93 207
         "version": "v4.1.3"
94 208
     },
209
+    "symfony/class-loader": {
210
+        "version": "v3.4.14"
211
+    },
95 212
     "symfony/config": {
96 213
         "version": "v4.1.3"
97 214
     },
@@ -119,6 +236,9 @@
119 236
     "symfony/event-dispatcher": {
120 237
         "version": "v4.1.3"
121 238
     },
239
+    "symfony/expression-language": {
240
+        "version": "v4.1.3"
241
+    },
122 242
     "symfony/filesystem": {
123 243
         "version": "v4.1.3"
124 244
     },
@@ -134,6 +254,9 @@
134 254
             "ref": "e921bdbfe20cdefa3b82f379d1cd36df1bc8d115"
135 255
         }
136 256
     },
257
+    "symfony/form": {
258
+        "version": "v4.1.3"
259
+    },
137 260
     "symfony/framework-bundle": {
138 261
         "version": "3.3",
139 262
         "recipe": {
@@ -149,6 +272,12 @@
149 272
     "symfony/http-kernel": {
150 273
         "version": "v4.1.3"
151 274
     },
275
+    "symfony/inflector": {
276
+        "version": "v4.1.3"
277
+    },
278
+    "symfony/intl": {
279
+        "version": "v4.1.3"
280
+    },
152 281
     "symfony/lts": {
153 282
         "version": "4-dev"
154 283
     },
@@ -161,9 +290,15 @@
161 290
             "ref": "fadbfe33303a76e25cb63401050439aa9b1a9c7f"
162 291
         }
163 292
     },
293
+    "symfony/options-resolver": {
294
+        "version": "v4.1.3"
295
+    },
164 296
     "symfony/orm-pack": {
165 297
         "version": "v1.0.5"
166 298
     },
299
+    "symfony/polyfill-intl-icu": {
300
+        "version": "v1.9.0"
301
+    },
167 302
     "symfony/polyfill-mbstring": {
168 303
         "version": "v1.9.0"
169 304
     },
@@ -173,6 +308,9 @@
173 308
     "symfony/profiler-pack": {
174 309
         "version": "v1.0.3"
175 310
     },
311
+    "symfony/property-access": {
312
+        "version": "v4.1.3"
313
+    },
176 314
     "symfony/routing": {
177 315
         "version": "4.0",
178 316
         "recipe": {
@@ -182,9 +320,45 @@
182 320
             "ref": "cda8b550123383d25827705d05a42acf6819fe4e"
183 321
         }
184 322
     },
323
+    "symfony/security": {
324
+        "version": "v4.1.3"
325
+    },
326
+    "symfony/security-acl": {
327
+        "version": "v3.0.1"
328
+    },
329
+    "symfony/security-bundle": {
330
+        "version": "3.3",
331
+        "recipe": {
332
+            "repo": "github.com/symfony/recipes",
333
+            "branch": "master",
334
+            "version": "3.3",
335
+            "ref": "f8a63faa0d9521526499c0a8f403c9964ecb0527"
336
+        }
337
+    },
185 338
     "symfony/stopwatch": {
186 339
         "version": "v4.1.3"
187 340
     },
341
+    "symfony/swiftmailer-bundle": {
342
+        "version": "2.5",
343
+        "recipe": {
344
+            "repo": "github.com/symfony/recipes",
345
+            "branch": "master",
346
+            "version": "2.5",
347
+            "ref": "3db029c03e452b4a23f7fc45cec7c922c2247eb8"
348
+        }
349
+    },
350
+    "symfony/templating": {
351
+        "version": "v4.1.3"
352
+    },
353
+    "symfony/translation": {
354
+        "version": "3.3",
355
+        "recipe": {
356
+            "repo": "github.com/symfony/recipes",
357
+            "branch": "master",
358
+            "version": "3.3",
359
+            "ref": "6bcd6c570c017ea6ae5a7a6a027c929fd3542cd8"
360
+        }
361
+    },
188 362
     "symfony/twig-bridge": {
189 363
         "version": "v4.1.3"
190 364
     },
@@ -197,6 +371,15 @@
197 371
             "ref": "f75ac166398e107796ca94cc57fa1edaa06ec47f"
198 372
         }
199 373
     },
374
+    "symfony/validator": {
375
+        "version": "4.1",
376
+        "recipe": {
377
+            "repo": "github.com/symfony/recipes",
378
+            "branch": "master",
379
+            "version": "4.1",
380
+            "ref": "0cdc982334f45d554957a6167e030482795bf9d7"
381
+        }
382
+    },
200 383
     "symfony/var-dumper": {
201 384
         "version": "v4.1.3"
202 385
     },
@@ -212,6 +395,15 @@
212 395
     "symfony/yaml": {
213 396
         "version": "v4.1.3"
214 397
     },
398
+    "twig/extensions": {
399
+        "version": "1.0",
400
+        "recipe": {
401
+            "repo": "github.com/symfony/recipes",
402
+            "branch": "master",
403
+            "version": "1.0",
404
+            "ref": "ddb2e0a77773b7fd75d8d649545f174e664500ab"
405
+        }
406
+    },
215 407
     "twig/twig": {
216 408
         "version": "v2.5.0"
217 409
     },

+ 0
- 0
translations/.gitignore View File