Browse Source

add the necessary sonata bundles #2

tags/Beta-1
Laszlo Lang 2 years 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
# Configure your db driver and server_version in config/packages/doctrine.yaml
DATABASE_URL=mysql://db_user:db_password@127.0.0.1:3306/db_name
###< doctrine/doctrine-bundle ###

###> symfony/swiftmailer-bundle ###
# For Gmail as a transport, use: "gmail://username:password@localhost"
# For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode="
# Delivery is disabled by default via "null://localhost"
MAILER_URL=null://localhost
###< symfony/swiftmailer-bundle ###

+ 5
- 0
composer.json View File

@@ -5,12 +5,17 @@
"php": "^7.1.3",
"ext-ctype": "*",
"ext-iconv": "*",
"sonata-project/admin-bundle": "^3.38",
"sonata-project/doctrine-orm-admin-bundle": "^3.6",
"sonata-project/media-bundle": "^3.15",
"sonata-project/user-bundle": "^4.2",
"symfony/console": "^4.1",
"symfony/flex": "^1.0",
"symfony/framework-bundle": "^4.1",
"symfony/lts": "^4@dev",
"symfony/maker-bundle": "^1.6",
"symfony/orm-pack": "^1.0",
"symfony/swiftmailer-bundle": "^3.2",
"symfony/twig-bundle": "^4.1",
"symfony/yaml": "^4.1"
},


+ 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 [
Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle::class => ['all' => true],
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
Sonata\DatagridBundle\SonataDatagridBundle::class => ['all' => true],
Sonata\CoreBundle\SonataCoreBundle::class => ['all' => true],
Sonata\BlockBundle\SonataBlockBundle::class => ['all' => true],
Knp\Bundle\MenuBundle\KnpMenuBundle::class => ['all' => true],
Sonata\AdminBundle\SonataAdminBundle::class => ['all' => true],
Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle::class => ['all' => true],
Sonata\EasyExtendsBundle\SonataEasyExtendsBundle::class => ['all' => true],
JMS\SerializerBundle\JMSSerializerBundle::class => ['all' => true],
Sonata\MediaBundle\SonataMediaBundle::class => ['all' => true],
App\Application\Sonata\MediaBundle\ApplicationSonataMediaBundle::class => ['all' => true],
FOS\UserBundle\FOSUserBundle::class => ['all' => true],
Sonata\UserBundle\SonataUserBundle::class => ['all' => true],
Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle::class => ['all' => true],
App\Application\Sonata\UserBundle\ApplicationSonataUserBundle::class => ['all' => true],
];

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

@@ -0,0 +1,7 @@
jms_serializer:
visitors:
json:
options:
- JSON_PRETTY_PRINT
- JSON_UNESCAPED_SLASHES
- JSON_PRESERVE_ZERO_FRACTION

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

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

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

@@ -14,6 +14,8 @@ doctrine:
default_table_options:
charset: utf8mb4
collate: utf8mb4_unicode_ci
types:
json: Sonata\Doctrine\Types\JsonType

url: '%env(resolve:DATABASE_URL)%'
orm:
@@ -27,3 +29,8 @@ doctrine:
dir: '%kernel.project_dir%/src/Entity'
prefix: 'App\Entity'
alias: App
ApplicationSonataMediaBundle: ~
SonataMediaBundle: ~
ApplicationSonataUserBundle: ~
SonataUserBundle: ~
FOSUserBundle: ~

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

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

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

@@ -28,3 +28,6 @@ framework:

# APCu (not recommended with heavy random-write workloads as memory fragmentation can cause perf issues)
#app: cache.adapter.apcu

templating:
engines: ['twig']

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

@@ -0,0 +1,13 @@
jms_serializer:
visitors:
xml:
format_output: '%kernel.debug%'
# metadata:
# auto_detection: false
# directories:
# any-name:
# namespace_prefix: "My\\FooBundle"
# path: "@MyFooBundle/Resources/config/serializer"
# another-name:
# namespace_prefix: "My\\BarBundle"
# path: "@MyBarBundle/Resources/config/serializer"

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

@@ -0,0 +1,6 @@
jms_serializer:
visitors:
json:
options:
- JSON_UNESCAPED_SLASHES
- JSON_PRESERVE_ZERO_FRACTION

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

@@ -0,0 +1,62 @@
security:
role_hierarchy:
ROLE_ADMIN: [ROLE_USER, ROLE_SONATA_ADMIN]
ROLE_SUPER_ADMIN: [ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
SONATA:
- ROLE_SONATA_PAGE_ADMIN_PAGE_EDIT # if you are using acl then this line must be commented
encoders:
FOS\UserBundle\Model\UserInterface: bcrypt
providers:
fos_userbundle:
id: fos_user.user_provider.username
firewalls:
# Disabling the security for the web debug toolbar, the profiler and Assetic.
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false

# -> custom firewall for the admin area of the URL
admin:
pattern: /admin(.*)
context: user
form_login:
provider: fos_userbundle
login_path: /admin/login
use_forward: false
check_path: /admin/login_check
failure_path: null
logout:
path: /admin/logout
target: /admin/login
anonymous: true

# -> end custom configuration

# default login area for standard users

# This firewall is used to handle the public login area
# This part is handled by the FOS User Bundle
main:
pattern: .*
context: user
form_login:
provider: fos_userbundle
login_path: /login
use_forward: false
check_path: /login_check
failure_path: null
logout: true
anonymous: true

access_control:
# Admin login page needs to be accessed without credential
- { path: ^/admin/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/admin/logout$, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/admin/login_check$, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/admin/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }

# Secured part of the site
# This config requires being logged for the whole site and having the admin role for the admin part.
# Change these rules to adapt them to your needs
- { path: ^/admin/, role: [ROLE_ADMIN, ROLE_SONATA_ADMIN] }
- { path: ^/.*, role: IS_AUTHENTICATED_ANONYMOUSLY }

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

@@ -0,0 +1,28 @@
sonata_admin:
title: 'Sonata Admin'
dashboard:
blocks:
- { type: sonata.admin.block.admin_list, position: left }
groups:
sonata.admin.user:
keep_open: true
label: 'User settings'
icon: '<i class="fa fa-users"></i>'
items:
- sonata.user.admin.user
- sonata.user.admin.group
roles: [ ROLE_DISTRIBUTOR ]
# sonata.admin.group.content:
# keep_open: false
# label: sonata_media
# label_catalogue: SonataMediaBundle
# icon: '<i class="fa fa-image"></i>'
# items:
# - sonata.media.admin.media
# - sonata.media.admin.gallery
# roles: [ ROLE_SUPER_ADMIN ]

sonata_block:
blocks:
sonata.admin.block.admin_list:
contexts: [admin]

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

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

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

@@ -0,0 +1,29 @@
sonata_media:
default_context: default
contexts:
default:
providers:
- sonata.media.provider.dailymotion
- sonata.media.provider.youtube
- sonata.media.provider.image
- sonata.media.provider.file
- sonata.media.provider.vimeo

formats:
small: { width: 100 , quality: 70}
big: { width: 500 , quality: 70}

cdn:
server:
path: /upload/media

filesystem:
local:
# Directory for uploads should be writable
directory: "%kernel.project_dir%/public/upload/media"
create: false

class:
media: App\Application\Sonata\MediaBundle\Entity\Media
gallery: App\Application\Sonata\MediaBundle\Entity\Gallery
gallery_has_media: App\Application\Sonata\MediaBundle\Entity\GalleryHasMedia

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

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

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

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

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

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

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

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

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

@@ -0,0 +1,11 @@
services:
_defaults:
public: false
autowire: true
autoconfigure: true

# Uncomment any lines below to activate that Twig extension
#Twig\Extensions\ArrayExtension: ~
#Twig\Extensions\DateExtension: ~
#Twig\Extensions\IntlExtension: ~
#Twig\Extensions\TextExtension: ~

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

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

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

@@ -0,0 +1,8 @@
admin_area:
resource: "@SonataAdminBundle/Resources/config/routing/sonata_admin.xml"
prefix: /admin

_sonata_admin:
resource: .
type: sonata_admin
prefix: /admin

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

@@ -0,0 +1,7 @@
sonata_media_gallery:
resource: '@SonataMediaBundle/Resources/config/routing/gallery.xml'
prefix: /media/gallery

sonata_media:
resource: '@SonataMediaBundle/Resources/config/routing/media.xml'
prefix: /media

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

@@ -0,0 +1,7 @@
sonata_user_admin_security:
resource: '@SonataUserBundle/Resources/config/routing/admin_security.xml'
prefix: /admin

sonata_user_admin_resetting:
resource: '@SonataUserBundle/Resources/config/routing/admin_resetting.xml'
prefix: /admin/resetting

+ 4
- 1
config/services.yaml View File

@@ -4,6 +4,9 @@
# Put parameters here that don't need to change on each machine where the app is deployed
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
parameters:
locale: 'en'
mailer_user: Lang
mailer_email: langlasz@gmail.com

services:
# default configuration for services in *this* file
@@ -18,7 +21,7 @@ services:
# this creates a service per class whose id is the fully-qualified class name
App\:
resource: '../src/*'
exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Application,Kernel.php}'

# controllers are imported separately to make sure services can be injected
# 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 @@
<?php

namespace App\Application\Sonata\MediaBundle;

use Symfony\Component\HttpKernel\Bundle\Bundle;

/**
* This file has been generated by the SonataEasyExtendsBundle.
*
* @link https://sonata-project.org/easy-extends
*
* References:
* @link http://symfony.com/doc/current/book/bundles.html
*/
class ApplicationSonataMediaBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function getParent()
{
return 'SonataMediaBundle';
}
}

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

@@ -0,0 +1,31 @@
<?php

namespace App\Application\Sonata\MediaBundle\Document;

use Sonata\MediaBundle\Document\BaseGallery as BaseGallery;

/**
* This file has been generated by the SonataEasyExtendsBundle.
*
* @link https://sonata-project.org/easy-extends
*
* References:
* @link http://www.doctrine-project.org/docs/mongodb_odm/1.0/en/reference/working-with-objects.html
*/
class Gallery extends BaseGallery
{
/**
* @var int $id
*/
protected $id;

/**
* Get id.
*
* @return int $id
*/
public function getId()
{
return $this->id;
}
}

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

@@ -0,0 +1,31 @@
<?php

namespace App\Application\Sonata\MediaBundle\Document;

use Sonata\MediaBundle\Document\BaseMedia as BaseMedia;

/**
* This file has been generated by the SonataEasyExtendsBundle.
*
* @link https://sonata-project.org/easy-extends
*
* References:
* @link http://www.doctrine-project.org/docs/mongodb_odm/1.0/en/reference/working-with-objects.html
*/
class Media extends BaseMedia
{
/**
* @var int $id
*/
protected $id;

/**
* Get id.
*
* @return int $id
*/
public function getId()
{
return $this->id;
}
}

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

@@ -0,0 +1,31 @@
<?php

namespace App\Application\Sonata\MediaBundle\Entity;

use Sonata\MediaBundle\Entity\BaseGallery as BaseGallery;

/**
* This file has been generated by the SonataEasyExtendsBundle.
*
* @link https://sonata-project.org/easy-extends
*
* References:
* @link http://www.doctrine-project.org/projects/orm/2.0/docs/reference/working-with-objects/en
*/
class Gallery extends BaseGallery
{
/**
* @var int $id
*/
protected $id;

/**
* Get id.
*
* @return int $id
*/
public function getId()
{
return $this->id;
}
}

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

@@ -0,0 +1,31 @@
<?php

namespace App\Application\Sonata\MediaBundle\Entity;

use Sonata\MediaBundle\Entity\BaseGalleryHasMedia as BaseGalleryHasMedia;

/**
* This file has been generated by the SonataEasyExtendsBundle.
*
* @link https://sonata-project.org/easy-extends
*
* References:
* @link http://www.doctrine-project.org/projects/orm/2.0/docs/reference/working-with-objects/en
*/
class GalleryHasMedia extends BaseGalleryHasMedia
{
/**
* @var int $id
*/
protected $id;

/**
* Get id.
*
* @return int $id
*/
public function getId()
{
return $this->id;
}
}

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

@@ -0,0 +1,31 @@
<?php

namespace App\Application\Sonata\MediaBundle\Entity;

use Sonata\MediaBundle\Entity\BaseMedia as BaseMedia;

/**
* This file has been generated by the SonataEasyExtendsBundle.
*
* @link https://sonata-project.org/easy-extends
*
* References:
* @link http://www.doctrine-project.org/projects/orm/2.0/docs/reference/working-with-objects/en
*/
class Media extends BaseMedia
{
/**
* @var int $id
*/
protected $id;

/**
* Get id.
*
* @return int $id
*/
public function getId()
{
return $this->id;
}
}

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

@@ -0,0 +1,31 @@
<?php

namespace App\Application\Sonata\MediaBundle\PHPCR;

use Sonata\MediaBundle\PHPCR\BaseGallery as BaseGallery;

/**
* This file has been generated by the SonataEasyExtendsBundle.
*
* @link https://sonata-project.org/easy-extends
*
* References:
* @link http://docs.doctrine-project.org/projects/doctrine-phpcr-odm/en/latest/index.html
*/
class Gallery extends BaseGallery
{
/**
* @var int $id
*/
protected $id;

/**
* Get id.
*
* @return int $id
*/
public function getId()
{
return $this->id;
}
}

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

@@ -0,0 +1,31 @@
<?php

namespace App\Application\Sonata\MediaBundle\PHPCR;

use Sonata\MediaBundle\PHPCR\BaseGalleryHasMedia as BaseGalleryHasMedia;

/**
* This file has been generated by the SonataEasyExtendsBundle.
*
* @link https://sonata-project.org/easy-extends
*
* References:
* @link http://docs.doctrine-project.org/projects/doctrine-phpcr-odm/en/latest/index.html
*/
class GalleryHasMedia extends BaseGalleryHasMedia
{
/**
* @var int $id
*/
protected $id;

/**
* Get id.
*
* @return int $id
*/
public function getId()
{
return $this->id;
}
}

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

@@ -0,0 +1,17 @@
<?php

namespace App\Application\Sonata\MediaBundle\PHPCR;

use Sonata\MediaBundle\PHPCR\BaseGalleryHasMediaRepository;

/**
* This file has been generated by the SonataEasyExtendsBundle.
*
* @link https://sonata-project.org/easy-extends
*
* References :
* @link http://www.doctrine-project.org/docs/mongodb_odm/1.0/en/reference/query-builder-api.html
*/
class GalleryHasMediaRepository extends BaseGalleryHasMediaRepository
{
}

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

@@ -0,0 +1,17 @@
<?php

namespace App\Application\Sonata\MediaBundle\PHPCR;

use Sonata\MediaBundle\PHPCR\BaseGalleryRepository;

/**
* This file has been generated by the SonataEasyExtendsBundle.
*
* @link https://sonata-project.org/easy-extends
*
* References :
* @link http://www.doctrine-project.org/docs/mongodb_odm/1.0/en/reference/query-builder-api.html
*/
class GalleryRepository extends BaseGalleryRepository
{
}

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

@@ -0,0 +1,31 @@
<?php

namespace App\Application\Sonata\MediaBundle\PHPCR;

use Sonata\MediaBundle\PHPCR\BaseMedia as BaseMedia;

/**
* This file has been generated by the SonataEasyExtendsBundle.
*
* @link https://sonata-project.org/easy-extends
*
* References:
* @link http://docs.doctrine-project.org/projects/doctrine-phpcr-odm/en/latest/index.html
*/
class Media extends BaseMedia
{
/**
* @var int $id
*/
protected $id;

/**
* Get id.
*
* @return int $id
*/
public function getId()
{
return $this->id;
}
}

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

@@ -0,0 +1,17 @@
<?php

namespace App\Application\Sonata\MediaBundle\PHPCR;

use Sonata\MediaBundle\PHPCR\BaseMediaRepository;

/**
* This file has been generated by the SonataEasyExtendsBundle.
*
* @link https://sonata-project.org/easy-extends
*
* References :
* @link http://www.doctrine-project.org/docs/mongodb_odm/1.0/en/reference/query-builder-api.html
*/
class MediaRepository extends BaseMediaRepository
{
}

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

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<doctrine-mongo-mapping xmlns="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping
http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping.xsd">
<!--
This file has been generated by the EasyExtends bundle ( https://sonata-project.org/easy-extends )

References :
xsd : https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd
xml mapping : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/xml-mapping/en
association mapping : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/association-mapping/en
-->
<document name="App\Application\Sonata\MediaBundle\Document\Gallery" >
<field fieldName="id" id="true" />
</document>
</doctrine-mongo-mapping>

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

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<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">
<!--
This file has been generated by the EasyExtends bundle ( https://sonata-project.org/easy-extends )

References :
xsd : https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd
xml mapping : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/xml-mapping/en
association mapping : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/association-mapping/en
-->
<entity
name="App\Application\Sonata\MediaBundle\Entity\Gallery"
table="media__gallery"
>

<id name="id" type="integer" column="id">
<generator strategy="AUTO"/>
</id>

</entity>
</doctrine-mapping>

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

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<doctrine-mapping
xmlns="http://doctrine-project.org/schemas/phpcr-odm/phpcr-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/phpcr-odm/phpcr-mapping
https://github.com/doctrine/phpcr-odm/raw/master/doctrine-phpcr-odm-mapping.xsd"
>
<!--
This file has been generated by the EasyExtends bundle ( https://sonata-project.org/easy-extends )

References :
xsd : https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd
xml mapping : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/xml-mapping/en
association mapping : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/association-mapping/en
-->

<document name="App\Application\Sonata\MediaBundle\PHPCR\Gallery"
repository-class="App\Application\Sonata\MediaBundle\PHPCR\GalleryRepository">

<id name="id">
<generator strategy="REPOSITORY" />
</id>

</document>

</doctrine-mapping>

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

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<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">
<!--
This file has been generated by the EasyExtends bundle ( https://sonata-project.org/easy-extends )

References :
xsd : https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd
xml mapping : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/xml-mapping/en
association mapping : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/association-mapping/en
-->
<entity
name="App\Application\Sonata\MediaBundle\Entity\GalleryHasMedia"
table="media__gallery_media"
>

<id name="id" type="integer" column="id">
<generator strategy="AUTO"/>
</id>

</entity>
</doctrine-mapping>

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

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<doctrine-mapping
xmlns="http://doctrine-project.org/schemas/phpcr-odm/phpcr-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/phpcr-odm/phpcr-mapping
https://github.com/doctrine/phpcr-odm/raw/master/doctrine-phpcr-odm-mapping.xsd"
>
<!--
This file has been generated by the EasyExtends bundle ( https://sonata-project.org/easy-extends )

References :
xsd : https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd
xml mapping : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/xml-mapping/en
association mapping : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/association-mapping/en
-->

<document name="App\Application\Sonata\MediaBundle\PHPCR\GalleryHasMedia"
repository-class="App\Application\Sonata\MediaBundle\PHPCR\GalleryHasMediaRepository">

<id name="id">
<generator strategy="REPOSITORY" />
</id>

<reference-many name="media" target-document="App\Application\Sonata\MediaBundle\PHPCR\Media" />

</document>

</doctrine-mapping>

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

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<doctrine-mongo-mapping xmlns="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping
http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping.xsd">
<!--
This file has been generated by the EasyExtends bundle ( https://sonata-project.org/easy-extends )

References :
xsd : https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd
xml mapping : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/xml-mapping/en
association mapping : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/association-mapping/en
-->
<document name="App\Application\Sonata\MediaBundle\Document\Media" >
<field fieldName="id" id="true" />
</document>
</doctrine-mongo-mapping>

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

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<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">
<!--
This file has been generated by the EasyExtends bundle ( https://sonata-project.org/easy-extends )

References :
xsd : https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd
xml mapping : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/xml-mapping/en
association mapping : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/association-mapping/en
-->
<entity
name="App\Application\Sonata\MediaBundle\Entity\Media"
table="media__media"
>

<id name="id" type="integer" column="id">
<generator strategy="AUTO"/>
</id>

</entity>
</doctrine-mapping>

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

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<doctrine-mapping
xmlns="http://doctrine-project.org/schemas/phpcr-odm/phpcr-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/phpcr-odm/phpcr-mapping
https://github.com/doctrine/phpcr-odm/raw/master/doctrine-phpcr-odm-mapping.xsd"
>
<!--
This file has been generated by the EasyExtends bundle ( https://sonata-project.org/easy-extends )

References :
xsd : https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd
xml mapping : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/xml-mapping/en
association mapping : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/association-mapping/en
-->

<document name="App\Application\Sonata\MediaBundle\PHPCR\Media"
repository-class="App\Application\Sonata\MediaBundle\PHPCR\MediaRepository" >

<id name="id">
<generator strategy="REPOSITORY" />
</id>

</document>

</doctrine-mapping>

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -0,0 +1,24 @@
<?php

namespace App\Application\Sonata\UserBundle;

use Symfony\Component\HttpKernel\Bundle\Bundle;

/**
* This file has been generated by the SonataEasyExtendsBundle.
*
* @link https://sonata-project.org/easy-extends
*
* References:
* @link http://symfony.com/doc/current/book/bundles.html
*/
class ApplicationSonataUserBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function getParent()
{
return 'SonataUserBundle';
}
}

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

@@ -0,0 +1,31 @@
<?php

namespace App\Application\Sonata\UserBundle\Document;

use Sonata\UserBundle\Document\BaseGroup as BaseGroup;

/**
* This file has been generated by the SonataEasyExtendsBundle.
*
* @link https://sonata-project.org/easy-extends
*
* References:
* @link http://www.doctrine-project.org/docs/mongodb_odm/1.0/en/reference/working-with-objects.html
*/
class Group extends BaseGroup
{
/**
* @var int $id
*/
protected $id;

/**
* Get id.
*
* @return int $id
*/
public function getId()
{
return $this->id;
}
}

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

@@ -0,0 +1,31 @@
<?php

namespace App\Application\Sonata\UserBundle\Document;

use Sonata\UserBundle\Document\BaseUser as BaseUser;

/**
* This file has been generated by the SonataEasyExtendsBundle.
*
* @link https://sonata-project.org/easy-extends
*
* References:
* @link http://www.doctrine-project.org/docs/mongodb_odm/1.0/en/reference/working-with-objects.html
*/
class User extends BaseUser
{
/**
* @var int $id
*/
protected $id;

/**
* Get id.
*
* @return int $id
*/
public function getId()
{
return $this->id;
}
}

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

@@ -0,0 +1,31 @@
<?php

namespace App\Application\Sonata\UserBundle\Entity;

use Sonata\UserBundle\Entity\BaseGroup as BaseGroup;

/**
* This file has been generated by the SonataEasyExtendsBundle.
*
* @link https://sonata-project.org/easy-extends
*
* References:
* @link http://www.doctrine-project.org/projects/orm/2.0/docs/reference/working-with-objects/en
*/
class Group extends BaseGroup
{
/**
* @var int $id
*/
protected $id;

/**
* Get id.
*
* @return int $id
*/
public function getId()
{
return $this->id;
}
}

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

@@ -0,0 +1,31 @@
<?php

namespace App\Application\Sonata\UserBundle\Entity;

use Sonata\UserBundle\Entity\BaseUser as BaseUser;

/**
* This file has been generated by the SonataEasyExtendsBundle.
*
* @link https://sonata-project.org/easy-extends
*
* References:
* @link http://www.doctrine-project.org/projects/orm/2.0/docs/reference/working-with-objects/en
*/
class User extends BaseUser
{
/**
* @var int $id
*/
protected $id;

/**
* Get id.
*
* @return int $id
*/
public function getId()
{
return $this->id;
}
}

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

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<doctrine-mongo-mapping xmlns="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping
http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping.xsd">

<document name="App\Application\Sonata\UserBundle\Document\Group" collection="fos_user_group">

<field fieldName="id" id="true" strategy="INCREMENT" />
</document>

</doctrine-mongo-mapping>

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

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">

<entity name="App\Application\Sonata\UserBundle\Entity\Group" table="fos_user__group">

<id name="id" column="id" type="integer">
<generator strategy="AUTO" />
</id>

</entity>

</doctrine-mapping>

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

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<doctrine-mongo-mapping xmlns="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping
http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping.xsd">

<document name="App\Application\Sonata\UserBundle\Document\User" collection="fos_user_user" customId="true">

<field fieldName="id" id="true" strategy="INCREMENT" />

</document>

</doctrine-mongo-mapping>

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

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">

<entity name="App\Application\Sonata\UserBundle\Entity\User" table="fos_user__user">

<id name="id" column="id" type="integer">
<generator strategy="AUTO" />
</id>

</entity>

</doctrine-mapping>

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

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

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

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

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

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

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

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

+ 192
- 0
symfony.lock View File

@@ -1,4 +1,7 @@
{
"cocur/slugify": {
"version": "v3.1"
},
"doctrine/annotations": {
"version": "1.0",
"recipe": {
@@ -65,9 +68,51 @@
"doctrine/reflection": {
"version": "v1.0.0"
},
"egulias/email-validator": {
"version": "2.1.5"
},
"friendsofsymfony/user-bundle": {
"version": "v2.1.2"
},
"guzzlehttp/psr7": {
"version": "1.4.2"
},
"imagine/imagine": {
"version": "v0.7.1"
},
"jdorn/sql-formatter": {
"version": "v1.2.17"
},
"jms/metadata": {
"version": "1.6.0"
},
"jms/parser-lib": {
"version": "1.0.0"
},
"jms/serializer": {
"version": "1.13.0"
},
"jms/serializer-bundle": {
"version": "2.0",
"recipe": {
"repo": "github.com/symfony/recipes-contrib",
"branch": "master",
"version": "2.0",
"ref": "fe60ce509ef04a3f40da96e3979bc8d9b13b2372"
}
},
"knplabs/gaufrette": {
"version": "v0.6.0"
},
"knplabs/knp-menu": {
"version": "2.3.0"
},
"knplabs/knp-menu-bundle": {
"version": "v2.2.1"
},
"kriswallsmith/buzz": {
"version": "v0.16.1"
},
"nikic/php-parser": {
"version": "v4.0.3"
},
@@ -77,21 +122,93 @@
"ocramius/proxy-manager": {
"version": "2.2.0"
},
"paragonie/random_compat": {
"version": "v2.0.17"
},
"phpcollection/phpcollection": {
"version": "0.5.0"
},
"phpoption/phpoption": {
"version": "1.5.0"
},
"psr/cache": {
"version": "1.0.1"
},
"psr/container": {
"version": "1.0.0"
},
"psr/http-message": {
"version": "1.0.1"
},
"psr/log": {
"version": "1.0.2"
},
"psr/simple-cache": {
"version": "1.0.1"
},
"sonata-project/admin-bundle": {
"version": "3.31",
"recipe": {
"repo": "github.com/symfony/recipes-contrib",
"branch": "master",
"version": "3.31",
"ref": "0e5931df1732e3dccfba42a20853049e5e9db6ae"
}
},
"sonata-project/block-bundle": {
"version": "3.12.1"
},
"sonata-project/cache": {
"version": "2.0.1"
},
"sonata-project/core-bundle": {
"version": "3.9",
"recipe": {
"repo": "github.com/symfony/recipes-contrib",
"branch": "master",
"version": "3.9",
"ref": "2f69bd1995730b73a5211a9707622fb25a925df7"
}
},
"sonata-project/datagrid-bundle": {
"version": "2.3.1"
},
"sonata-project/doctrine-extensions": {
"version": "1.0.2"
},
"sonata-project/doctrine-orm-admin-bundle": {
"version": "3.6.1"
},
"sonata-project/easy-extends-bundle": {
"version": "2.5.0"
},
"sonata-project/exporter": {
"version": "1.9.1"
},
"sonata-project/media-bundle": {
"version": "3.13",
"recipe": {
"repo": "github.com/symfony/recipes-contrib",
"branch": "master",
"version": "3.13",
"ref": "e25412e53b20827db07abb6f2aa0b8e4d26c284c"
}
},
"sonata-project/user-bundle": {
"version": "4.2.3"
},
"swiftmailer/swiftmailer": {
"version": "v6.1.2"
},
"symfony/asset": {
"version": "v4.1.3"
},
"symfony/cache": {
"version": "v4.1.3"
},
"symfony/class-loader": {
"version": "v3.4.14"
},
"symfony/config": {
"version": "v4.1.3"
},
@@ -119,6 +236,9 @@
"symfony/event-dispatcher": {
"version": "v4.1.3"
},
"symfony/expression-language": {
"version": "v4.1.3"
},
"symfony/filesystem": {
"version": "v4.1.3"
},
@@ -134,6 +254,9 @@
"ref": "e921bdbfe20cdefa3b82f379d1cd36df1bc8d115"
}
},
"symfony/form": {
"version": "v4.1.3"
},
"symfony/framework-bundle": {
"version": "3.3",
"recipe": {
@@ -149,6 +272,12 @@
"symfony/http-kernel": {
"version": "v4.1.3"
},
"symfony/inflector": {
"version": "v4.1.3"
},
"symfony/intl": {
"version": "v4.1.3"
},
"symfony/lts": {
"version": "4-dev"
},
@@ -161,9 +290,15 @@
"ref": "fadbfe33303a76e25cb63401050439aa9b1a9c7f"
}
},
"symfony/options-resolver": {
"version": "v4.1.3"
},
"symfony/orm-pack": {
"version": "v1.0.5"
},
"symfony/polyfill-intl-icu": {
"version": "v1.9.0"
},
"symfony/polyfill-mbstring": {
"version": "v1.9.0"
},
@@ -173,6 +308,9 @@
"symfony/profiler-pack": {
"version": "v1.0.3"
},
"symfony/property-access": {
"version": "v4.1.3"
},
"symfony/routing": {
"version": "4.0",
"recipe": {
@@ -182,9 +320,45 @@
"ref": "cda8b550123383d25827705d05a42acf6819fe4e"
}
},
"symfony/security": {
"version": "v4.1.3"
},
"symfony/security-acl": {
"version": "v3.0.1"
},
"symfony/security-bundle": {
"version": "3.3",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "3.3",
"ref": "f8a63faa0d9521526499c0a8f403c9964ecb0527"
}
},
"symfony/stopwatch": {
"version": "v4.1.3"
},
"symfony/swiftmailer-bundle": {
"version": "2.5",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "2.5",
"ref": "3db029c03e452b4a23f7fc45cec7c922c2247eb8"
}
},
"symfony/templating": {
"version": "v4.1.3"
},
"symfony/translation": {
"version": "3.3",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "3.3",
"ref": "6bcd6c570c017ea6ae5a7a6a027c929fd3542cd8"
}
},
"symfony/twig-bridge": {
"version": "v4.1.3"
},
@@ -197,6 +371,15 @@
"ref": "f75ac166398e107796ca94cc57fa1edaa06ec47f"
}
},
"symfony/validator": {
"version": "4.1",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "4.1",
"ref": "0cdc982334f45d554957a6167e030482795bf9d7"
}
},
"symfony/var-dumper": {
"version": "v4.1.3"
},
@@ -212,6 +395,15 @@
"symfony/yaml": {
"version": "v4.1.3"
},
"twig/extensions": {
"version": "1.0",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "1.0",
"ref": "ddb2e0a77773b7fd75d8d649545f174e664500ab"
}
},
"twig/twig": {
"version": "v2.5.0"
},


+ 0
- 0
translations/.gitignore View File


Loading…
Cancel
Save