Browse Source

chg: dev: remove SonataAdminBundle from the project #8

master
Lang 3 months ago
parent
commit
072737f4c4
55 changed files with 24 additions and 1586 deletions
  1. +5
    -14
      config/bundles.php
  2. +6
    -23
      config/packages/doctrine.yaml
  3. +0
    -12
      config/packages/fos_user.yaml
  4. +0
    -40
      config/packages/sonata_admin.yaml
  5. +0
    -4
      config/packages/sonata_core.yaml
  6. +0
    -34
      config/packages/sonata_media.yaml
  7. +0
    -8
      config/packages/sonata_user.yaml
  8. +0
    -8
      config/routes/sonata_admin.yaml
  9. +0
    -7
      config/routes/sonata_media.yaml
  10. +0
    -7
      config/routes/sonata_user.yaml
  11. +6
    -12
      config/services.yaml
  12. +0
    -429
      public/check.php
  13. +0
    -24
      src/Application/Sonata/MediaBundle/ApplicationSonataMediaBundle.php
  14. +0
    -31
      src/Application/Sonata/MediaBundle/Document/Gallery.php
  15. +0
    -31
      src/Application/Sonata/MediaBundle/Document/Media.php
  16. +0
    -31
      src/Application/Sonata/MediaBundle/Entity/Gallery.php
  17. +0
    -31
      src/Application/Sonata/MediaBundle/Entity/GalleryHasMedia.php
  18. +0
    -31
      src/Application/Sonata/MediaBundle/Entity/Media.php
  19. +0
    -31
      src/Application/Sonata/MediaBundle/PHPCR/Gallery.php
  20. +0
    -31
      src/Application/Sonata/MediaBundle/PHPCR/GalleryHasMedia.php
  21. +0
    -17
      src/Application/Sonata/MediaBundle/PHPCR/GalleryHasMediaRepository.php
  22. +0
    -17
      src/Application/Sonata/MediaBundle/PHPCR/GalleryRepository.php
  23. +0
    -31
      src/Application/Sonata/MediaBundle/PHPCR/Media.php
  24. +0
    -17
      src/Application/Sonata/MediaBundle/PHPCR/MediaRepository.php
  25. +0
    -17
      src/Application/Sonata/MediaBundle/Resources/config/doctrine/Gallery.mongodb.xml
  26. +0
    -21
      src/Application/Sonata/MediaBundle/Resources/config/doctrine/Gallery.orm.xml
  27. +0
    -26
      src/Application/Sonata/MediaBundle/Resources/config/doctrine/Gallery.phpcr.xml
  28. +0
    -21
      src/Application/Sonata/MediaBundle/Resources/config/doctrine/GalleryHasMedia.orm.xml
  29. +0
    -28
      src/Application/Sonata/MediaBundle/Resources/config/doctrine/GalleryHasMedia.phpcr.xml
  30. +0
    -17
      src/Application/Sonata/MediaBundle/Resources/config/doctrine/Media.mongodb.xml
  31. +0
    -21
      src/Application/Sonata/MediaBundle/Resources/config/doctrine/Media.orm.xml
  32. +0
    -26
      src/Application/Sonata/MediaBundle/Resources/config/doctrine/Media.phpcr.xml
  33. +0
    -7
      src/Application/Sonata/MediaBundle/Resources/config/serializer/Document.Gallery.xml
  34. +0
    -7
      src/Application/Sonata/MediaBundle/Resources/config/serializer/Document.GalleryHasMedia.xml
  35. +0
    -7
      src/Application/Sonata/MediaBundle/Resources/config/serializer/Document.Media.xml
  36. +0
    -7
      src/Application/Sonata/MediaBundle/Resources/config/serializer/Entity.Gallery.xml
  37. +0
    -7
      src/Application/Sonata/MediaBundle/Resources/config/serializer/Entity.GalleryHasMedia.xml
  38. +0
    -7
      src/Application/Sonata/MediaBundle/Resources/config/serializer/Entity.Media.xml
  39. +0
    -24
      src/Application/Sonata/UserBundle/ApplicationSonataUserBundle.php
  40. +0
    -31
      src/Application/Sonata/UserBundle/Document/Group.php
  41. +0
    -31
      src/Application/Sonata/UserBundle/Document/User.php
  42. +0
    -31
      src/Application/Sonata/UserBundle/Entity/Group.php
  43. +0
    -31
      src/Application/Sonata/UserBundle/Entity/User.php
  44. +0
    -13
      src/Application/Sonata/UserBundle/Resources/config/doctrine/Group.mongodb.xml
  45. +0
    -15
      src/Application/Sonata/UserBundle/Resources/config/doctrine/Group.orm.xml
  46. +0
    -13
      src/Application/Sonata/UserBundle/Resources/config/doctrine/User.mongodb.xml
  47. +0
    -15
      src/Application/Sonata/UserBundle/Resources/config/doctrine/User.orm.xml
  48. +0
    -7
      src/Application/Sonata/UserBundle/Resources/config/serializer/Document.Group.xml
  49. +0
    -7
      src/Application/Sonata/UserBundle/Resources/config/serializer/Document.User.xml
  50. +0
    -7
      src/Application/Sonata/UserBundle/Resources/config/serializer/Entity.Group.xml
  51. +0
    -7
      src/Application/Sonata/UserBundle/Resources/config/serializer/Entity.User.xml
  52. +6
    -24
      src/Entity/Project.php
  53. +0
    -65
      templates/admin/layout.html.twig
  54. +0
    -124
      templates/bundles/SonataUserBundle/Admin/Security/login.html.twig
  55. +1
    -1
      templates/default/index.html.twig

+ 5
- 14
config/bundles.php View File

@@ -8,20 +8,11 @@ return [
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],
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],
JMS\SerializerBundle\JMSSerializerBundle::class => ['all' => true],
Sonata\MediaBundle\SonataMediaBundle::class => ['all' => true],
App\Application\Sonata\MediaBundle\ApplicationSonataMediaBundle::class => ['all' => true],
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true],
Nelmio\CorsBundle\NelmioCorsBundle::class => ['all' => true],
ApiPlatform\Core\Bridge\Symfony\Bundle\ApiPlatformBundle::class => ['all' => true],
Twig\Extra\TwigExtraBundle\TwigExtraBundle::class => ['all' => true],
Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true],
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true, 'test' => true],
];

+ 6
- 23
config/packages/doctrine.yaml View File

@@ -1,25 +1,13 @@
parameters:
# Adds a fallback DATABASE_URL if the env var is not set.
# This allows you to run cache:warmup even if your
# environment variables are not available yet.
# You should not need to change this value.
env(DATABASE_URL): ''

doctrine:
dbal:
# configure these for your database server
driver: 'pdo_mysql'
server_version: '5.7'
charset: utf8mb4
default_table_options:
charset: utf8mb4
collate: utf8mb4_unicode_ci
types:
json: Sonata\Doctrine\Types\JsonType
url: '%env(resolve:DATABASE_URL)%'

# IMPORTANT: You MUST configure your server version,
# either here or in the DATABASE_URL env var (see .env file)
#server_version: '5.7'
orm:
auto_generate_proxy_classes: '%kernel.debug%'
naming_strategy: doctrine.orm.naming_strategy.underscore
auto_generate_proxy_classes: true
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
auto_mapping: true
mappings:
App:
@@ -28,8 +16,3 @@ doctrine:
dir: '%kernel.project_dir%/src/Entity'
prefix: 'App\Entity'
alias: App
ApplicationSonataUserBundle: ~
SonataUserBundle: ~
FOSUserBundle: ~
ApplicationSonataMediaBundle: ~
SonataMediaBundle: ~

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

@@ -1,12 +0,0 @@
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%"

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

@@ -1,40 +0,0 @@
sonata_admin:
title: '%jotunheimr.title.small%'
title_logo: 'images/system7-Bear@250.png'
dashboard:
blocks:
- { type: sonata.admin.block.admin_list, position: left }
groups:
sonata.admin:
keep_open: true
label: 'Tartalom'
icon: '<i class="fa fa-address-book"></i>'
items:
- admin.project
roles: [ ROLE_SUPER_ADMIN ]
sonata.admin.user:
keep_open: false
label: 'User settings'
icon: '<i class="fa fa-users"></i>'
items:
- sonata.user.admin.user
- sonata.user.admin.group
roles: [ ROLE_SUPER_ADMIN ]
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 ]
templates:
layout: admin/layout.html.twig
options:
use_select2: true

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

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

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

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

@@ -1,34 +0,0 @@
sonata_media:
db_driver: doctrine_orm
default_context: project
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}
project:
providers:
- sonata.media.provider.image
formats:
preview: { width: 100, quality: 100}
small: { width: 320, quality: 100}
large: { width: 1280, quality: 100}
original: { width: 1920, quality: 100}
cdn:
server:
path: /upload/media # http://media.sonata-project.org/
filesystem:
local:
# Directory for uploads should be writable
directory: "%kernel.root_dir%/../public/upload/media" #flex
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

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

@@ -1,8 +0,0 @@
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
profile:
default_avatar: 'images/default_avatar.png'

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

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

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

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

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

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

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

@@ -1,7 +0,0 @@
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

+ 6
- 12
config/services.yaml View File

@@ -5,11 +5,16 @@
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
parameters:
locale: 'en'

container.dumper.inline_factories: true
container.dumper.inline_class_loader: true

jotunheimr.title: 'SplendidBear Websites'
jotunheimr.title.small: 'SplendidBear'
jotunheimr.image: '/images/system7-Bear@250.png'
jotunheimr.image.sign: '/images/system7-Bear-created-by@100.png'
jotunheimr.version: 0.3.1-20191230

mailer_user: Lang
mailer_email: langlasz@gmail.com

@@ -26,7 +31,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,Application,Kernel.php}'
exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,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
@@ -36,14 +41,3 @@ services:

# add more service definitions when explicit configuration is needed
# please note that last definitions always *replace* previous ones

###
# Sonata Admin Services
###

admin.project:
public: true
class: App\Admin\ProjectAdmin
arguments: [~, App\Entity\Project, ~]
tags:
- { name: sonata.admin, manager_type: orm, label: Project }

+ 0
- 429
public/check.php View File

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

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

use Symfony\Requirements\SymfonyRequirements;
/*
if (!isset($_SERVER['HTTP_HOST'])) {
exit("This script cannot be run from the CLI. Run it from a browser.\n");
}

if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
'127.0.0.1',
'::1',
))) {
header('HTTP/1.0 403 Forbidden');
exit('This script is only accessible from localhost.');
}
*/

if (file_exists($autoloader = __DIR__.'/../../../autoload.php')) {
require_once $autoloader;
} elseif (file_exists($autoloader = __DIR__.'/../vendor/autoload.php')) {
require_once $autoloader;
} else {
throw new \RuntimeException('Unable to find the Composer autoloader.');
}

$symfonyRequirements = new SymfonyRequirements(dirname(dirname(realpath($autoloader))));

$majorProblems = $symfonyRequirements->getFailedRequirements();
$minorProblems = $symfonyRequirements->getFailedRecommendations();
$hasMajorProblems = (bool) count($majorProblems);
$hasMinorProblems = (bool) count($minorProblems);

?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="robots" content="noindex,nofollow" />
<title>Symfony Configuration Checker</title>
<style>
/* styles copied from symfony framework bundle */
html {
background: #eee;
}
body {
font: 11px Verdana, Arial, sans-serif;
color: #333;
}
.sf-reset, .sf-reset .block, .sf-reset #message {
margin: auto;
}
img {
border: 0;
}
.clear {
clear: both;
height: 0;
font-size: 0;
line-height: 0;
}
.clear-fix:after {
content: "\0020";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.clear-fix {
display: inline-block;
}
* html .clear-fix {
height: 1%;
}
.clear-fix {
display: block;
}
.header {
padding: 30px 30px 20px 30px;
}
.header-logo {
float: left;
}
.search {
float: right;
padding-top: 20px;
}
.search label {
line-height: 28px;
vertical-align: middle;
}
.search input {
width: 195px;
font-size: 12px;
border: 1px solid #dadada;
background: #fff url(data:image/gif;base64,R0lGODlhAQAFAKIAAPX19e/v7/39/fr6+urq6gAAAAAAAAAAACH5BAAAAAAALAAAAAABAAUAAAMESAEjCQA7) repeat-x left top;
padding: 5px 6px;
color: #565656;
}
.search input[type="search"] {
-webkit-appearance: textfield;
}
#content {
width: 970px;
margin: 0 auto;
}
#content pre {
white-space: normal;
font-family: Arial, Helvetica, sans-serif;
}

/*
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 3.1.2
build: 56
*/
.sf-reset div,.sf-reset dl,.sf-reset dt,.sf-reset dd,.sf-reset ul,.sf-reset ol,.sf-reset li,.sf-reset h1,.sf-reset h2,.sf-reset h3,.sf-reset h4,.sf-reset h5,.sf-reset h6,.sf-reset pre,.sf-reset code,.sf-reset form,.sf-reset fieldset,.sf-reset legend,.sf-reset input,.sf-reset textarea,.sf-reset p,.sf-reset blockquote,.sf-reset th,.sf-reset td{margin:0;padding:0;}.sf-reset table{border-collapse:collapse;border-spacing:0;}.sf-reset fieldset,.sf-reset img{border:0;}.sf-reset address,.sf-reset caption,.sf-reset cite,.sf-reset code,.sf-reset dfn,.sf-reset em,.sf-reset strong,.sf-reset th,.sf-reset var{font-style:normal;font-weight:normal;}.sf-reset li{list-style:none;}.sf-reset caption,.sf-reset th{text-align:left;}.sf-reset h1,.sf-reset h2,.sf-reset h3,.sf-reset h4,.sf-reset h5,.sf-reset h6{font-size:100%;font-weight:normal;}.sf-reset q:before,.sf-reset q:after{content:'';}.sf-reset abbr,.sf-reset acronym{border:0;font-variant:normal;}.sf-reset sup{vertical-align:text-top;}.sf-reset sub{vertical-align:text-bottom;}.sf-reset input,.sf-reset textarea,.sf-reset select{font-family:inherit;font-size:inherit;font-weight:inherit;}.sf-reset input,.sf-reset textarea,.sf-reset select{font-size:100%;}.sf-reset legend{color:#000;}
.sf-reset abbr {
border-bottom: 1px dotted #000;
cursor: help;
}
.sf-reset p {
font-size: 14px;
line-height: 20px;
padding-bottom: 20px;
}
.sf-reset strong {
color: #313131;
font-weight: bold;
}
.sf-reset a {
color: #6c6159;
}
.sf-reset a img {
border: none;
}
.sf-reset a:hover {
text-decoration: underline;
}
.sf-reset em {
font-style: italic;
}
.sf-reset h2,
.sf-reset h3 {
font-weight: bold;
}
.sf-reset h1 {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 20px;
color: #313131;
word-wrap: break-word;
}
.sf-reset li {
padding-bottom: 10px;
}
.sf-reset .block {
-moz-border-radius: 16px;
-webkit-border-radius: 16px;
border-radius: 16px;
margin-bottom: 20px;
background-color: #FFFFFF;
border: 1px solid #dfdfdf;
padding: 40px 50px;
word-break: break-all;
}
.sf-reset h2 {
font-size: 16px;
font-family: Arial, Helvetica, sans-serif;
}
.sf-reset li a {
background: none;
color: #868686;
text-decoration: none;
}
.sf-reset li a:hover {
background: none;
color: #313131;
text-decoration: underline;
}
.sf-reset ol {
padding: 10px 0;
}
.sf-reset ol li {
list-style: decimal;
margin-left: 20px;
padding: 2px;
padding-bottom: 20px;
}
.sf-reset ol ol li {
list-style-position: inside;
margin-left: 0;
white-space: nowrap;
font-size: 12px;
padding-bottom: 0;
}
.sf-reset li .selected {
background-color: #ffd;
}
.sf-button {
display: -moz-inline-box;
display: inline-block;
text-align: center;
vertical-align: middle;
border: 0;
background: transparent none;
text-transform: uppercase;
cursor: pointer;
font: bold 11px Arial, Helvetica, sans-serif;
}
.sf-button span {
text-decoration: none;
display: block;
height: 28px;
float: left;
}
.sf-button .border-l {
text-decoration: none;
display: block;
height: 28px;
float: left;
padding: 0 0 0 7px;
background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAcCAYAAACtQ6WLAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQtJREFUeNpiPHnyJAMakARiByDWYEGT8ADiYGVlZStubm5xlv///4MEQYoKZGRkQkRERLRYWVl5wYJQyXBZWdkwCQkJUxAHKgaWlAHSLqKiosb//v1DsYMFKGCvoqJiDmQzwXTAJYECulxcXNLoumCSoszMzDzoumDGghQwYZUECWIzkrAkSIIGOmlkLI10AiX//P379x8jIyMTNmPf/v79+ysLCwsvuiQoNi5//fr1Kch4dAyS3P/gwYMTQBP+wxwHw0xA4gkQ73v9+vUZdJ2w1Lf82bNn4iCHCQoKasHsZw4ODgbRIL8c+/Lly5M3b978Y2dn5wC6npkFLXnsAOKLjx49AmUHLYAAAwBoQubG016R5wAAAABJRU5ErkJggg==) no-repeat top left;
}
.sf-button .border-r {
padding: 0 7px 0 0;
background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAcCAYAAACtQ6WLAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAR1JREFUeNpiPHnyZCMDA8MNID5gZmb2nAEJMH7//v3N169fX969e/cYkL8WqGAHXPLv37//QYzfv39/fvPmzbUnT56sAXInmJub/2H5/x8sx8DCwsIrISFhDmQyPX78+CmQXs70798/BmQsKipqBNTgdvz4cWkmkE5kDATMioqKZkCFdiwg1eiAi4tLGqhQF24nMmBmZuYEigth1QkEbEBxTlySYPvJkwSJ00AnjYylgU6gxB8g/oFVEphkvgLF32KNMmCCewYUv4qhEyj47+HDhyeBzIMYOoEp8CxQw56wsLAncJ1//vz5/P79+2svX74EJc2V4BT58+fPd8CE/QKYHMGJOiIiAp6oWW7evDkNSF8DZYfIyEiU7AAQYACJ2vxVdJW4eQAAAABJRU5ErkJggg==) right top no-repeat;
}
.sf-button .btn-bg {
padding: 0 14px;
color: #636363;
line-height: 28px;
background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAcCAYAAACgXdXMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAClJREFUeNpiPnny5EKGf//+/Wf6//8/A4QAcrGzKCZwGc9sa2urBBBgAIbDUoYVp9lmAAAAAElFTkSuQmCC) repeat-x top left;
}
.sf-button:hover .border-l,
.sf-button-selected .border-l {
background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAcCAYAAACtQ6WLAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAR9JREFUeNpi/P//PwMyOHfunDqQSgNiexZkibNnzxYBqZa3HOs5v7PcYQBLnjlzhg1IbfzIdsTjA/t+ht9Mr8GKwZL//v3r+sB+0OMN+zqIEf8gFMvJkyd1gXTOa9YNDP//otrPAtSV/Jp9HfPff78Z0AEL0LUeXxivMfxD0wXTqfjj/2ugkf+wSrL9/YtpJEyS4S8WI5Ek/+GR/POPFjr//cenE6/kP9q4Fo/kr39/mdj+M/zFkGQCSj5i+ccPjLJ/GBgkuYOHQR1sNDpmAkb2LBmWwL///zKCIxwZM0VHR18G6p4uxeLLAA4tJMwEshiou1iMxXaHLGswA+t/YbhORuQUv2DBAnCifvxzI+enP3dQJUFg/vz5sOzgBBBgAPxX9j0YnH4JAAAAAElFTkSuQmCC) no-repeat top left;
}
.sf-button:hover .border-r,
.sf-button-selected .border-r {
background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAcCAYAAACtQ6WLAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAT5JREFUeNpiPHv27BkGBoaDQDzLyMjoJgMSYHrM3WX8hn1d0f///88DFRYhSzIuv2X5H8Rg/SfKIPDTkYH/l80OINffxMTkF9O/f/8ZQPgnwyuGl+wrGd6x7vf49+9fO9jYf3+Bkkj4NesmBqAV+SdPntQC6vzHgIz//gOawbqOGchOxtAJwp8Zr4F0e7D8/fuPAR38/P8eZIo0yz8skv8YvoIk+YE6/zNgAyD7sRqLkPzzjxY6/+HS+R+fTkZ8djLh08lCUCcuSWawJGbwMTGwg7zyBatX2Bj5QZKPsBrLzaICktzN8g/NWEYGZgYZjoC/wMiei5FMpFh8QPSU6Ojoy3Cd7EwiDBJsDgxiLNY7gLrKQGIsHAxSDHxAO2TZ/b8D+TVxcXF9MCtYtLiKLgDpfUDVsxITE1GyA0CAAQA2E/N8VuHyAAAAAABJRU5ErkJggg==) right top no-repeat;
}
.sf-button:hover .btn-bg,
.sf-button-selected .btn-bg {
color: #FFFFFF;
text-shadow:0 1px 1px #6b9311;
background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAcCAIAAAAvP0KbAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEFJREFUeNpiPnv2LNMdvlymf///M/37B8R/QfQ/MP33L4j+B6Qh7L9//sHpf2h8MA1V+w/KRjYLaDaLCU8vQIABAFO3TxZriO4yAAAAAElFTkSuQmCC) repeat-x top left;
}

/* styles copied from bundles/sensiodistribution/webconfigurator/css/install.css */
body {
font-size: 14px;
font-family: "Lucida Sans Unicode", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
}
.sf-reset h1.title {
font-size: 45px;
padding-bottom: 30px;
}
.sf-reset h2 {
font-weight: bold;
color: #FFFFFF;
/* Font is reset to sans-serif (like body) */
font-family: "Lucida Sans Unicode", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
margin-bottom: 10px;
background-color: #aacd4e;
padding: 2px 4px;
display: inline-block;
text-transform: uppercase;
}
.sf-reset ul a,
.sf-reset ul a:hover {
background: url(../images/blue-arrow.png) no-repeat right 6px;
padding-right: 10px;
}
.sf-reset ul, ol {
padding-left: 20px;
}
.sf-reset li {
padding-bottom: 18px;
}
.sf-reset ol li {
list-style-type: decimal;
}
.sf-reset ul li {
list-style-type: none;
}
.sf-reset .symfony-blocks-install {
overflow: hidden;
}
.sf-reset .symfony-install-continue {
font-size: 0.95em;
padding-left: 0;
}
.sf-reset .symfony-install-continue li {
padding-bottom: 10px;
}
.sf-reset .ok {
color: #fff;
font-family: "Lucida Sans Unicode", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
background-color: #6d6;
padding: 10px;
margin-bottom: 20px;
}
.sf-reset .ko {
background-color: #d66;
}
.sf-reset p.help {
padding: 12px 16px;
word-break: break-word;
}
.version {
text-align: right;
font-size: 10px;
margin-right: 20px;
}
.sf-reset a,
.sf-reset li a {
color: #08C;
text-decoration: none;
}
.sf-reset a:hover,
.sf-reset li a:hover {
color: #08C;
text-decoration: underline;
}
.sf-reset textarea {
padding: 7px;
}
</style>
</head>
<body>
<div id="content">
<div class="header clear-fix">
<div class="header-logo">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALYAAAA+CAMAAACxzRGDAAAAUVBMVEX////Ly8yko6WLioxkYmVXVVkwLjLl5eWxsLJKSEzy8vJxcHLY2Ni+vb89Oz9XVVh+fH+Yl5n///+xsbLY2Nlxb3KkpKWXlph+fX+LiYy+vr/IZP61AAAAAXRSTlMAQObYZgAABRBJREFUeNrVmtuWoyAQRS1FEEQSzQU7//+hYxUiXsKQZLJWM+chsUloN+WhCuguYoKyYqzmvGasKqH4HyRKxndipcgcumH8qViTM7TkUclcwaHmf5XM0eWq4km1KjdqXfMXJHVe1J3hL8lk5fCGv6wmT+o0d87U+XNrk0Y9nfv+7LM6ZJH5ZBL6LAbSxQ3Q5FDr22Skr8PQSy4n7isnsQxSX4r6pobhjCHHeDNOKrO3yGmCvZOjV9jmt8ulTdXFKdbKLNh+kOMvBzuVRa4Y7MUsdEUSWQe7xxCfZmcwjHU83LqzFvSbJQOXQvptbPnEFoyZtUUGwTeKuLuTHyT1kaP0P6cR01OKvv448gtl61dqZfmJezQmU/t+1R2fJLtBwXV6uWGwB9SZPrn0fKO2WAvQN1PUhHjTom3xgXYTkvlSKHs19OhslETq6X3HrXbjt8XbGj9b4Gi+lUAnL6XxQj8Pyk9N4Bt1xUrsLVN/3isYMug8rODMdbgOvoHs8uAb2fcANIAzkKCLYy+AXRpSU8sr1r4P67xhLgPp7vM32zlqt7Bhq2fI1Hwp+VgANxok59SsGV3oqdUL0YVDMRY7Yg8QLbVUU4NZNoOq5hJHuxEM28Sh/IyUZ8D3reR+yc58EGvOy2U0HQL6G9V+kWyEWHmzaMx6t4o9RhOm/riUiYrzqij4Ptqkn7AaCXqc+F47m04ahfde7YIz8RHEBN6BdVwdIGRVdNbKqYu1Hc0x0wBY4wqC8+XUgBGnj81SZsQB+0yAS1x/BlI/6ebHHk0lauQLuPDpu6EwAVJ7T0rl2uXa23jcqNyOZekhqYHRz3JOANrF4wCCmEs1f9D1lUe0n4NAATed80Y5e0Q7CO2TezM/BR6wKdgQzKbCF4uOQC3Bk0fKAzbFlyRWg3gksA/gmm7eOjrpaKX7fHlEW2xLbE6GZsPiCiShVzN7RG2xTz2G+OJtEqzdJ7APxy3MrSsV0VukXbKMp9lhs5BN6dr3CN+sySUaoxGwfRUM3I/gdPYONgVU+PLX4vUWm32AvUySarbONvcpV2RQEPKKjEBHFk01kQDGRblnn8ZuE9g+JUl8OWAPbkFK2K6JxhJVvF47FzYYnAN22ttwxKYCoH36rheEB7KG/HF/YUaa2G5JF+55tpyrl7B1WHM39HuP2N2EXPl1UBu8vbj4OjvD+NoTE4ssF+ScARgaJY1N7+u8bY/Y9BSM5PKwJbvMVab32YP5FB5TtcYVrGoASolVLTzI7kVsYVxRtAb5n2JXq1vCdtd47XtYItynrN0835PasLg0y13aOPbmPI+on2Lr9e5tjSHvgkAvclUjL3Fsdaw03IzgTR62yYClk7QMah4IQ0qSsoYYbOix6zJR1ZGDNMOY3Bb6W5S6jiyovep3t7bUPyoq7OkjYumrfESp8zSBc/OLosVf+nTnnKjsqR16++WDwpI8FxJWRFTlI6NKnqYJaL96TqjAbo9Toi5QiWBDcmfdFV+T8dkvFe5bItgstbM2X6QG2mVun+cazfRwOS0eiaeRRJKgLfc3BQAqfnhJyz8lfR6580SF/FXVu83Nz1xrrnFqqXL6Qxl47DNSm4RFflvN5sABDD8peouqLLKQXVdGbnqf+qIpOxON4ZyYdJEJ6sy4zS2c5eRPTT4Jyp46qDE5/ptAWqJOQ9e6yE82FXBbZCk1/tXVoshVoopE3CB0zmraI3nbqCJ/gW3ZMgtbC5nh/QHlOoOZBxQCRgAAAABJRU5ErkJggg==" alt="Symfony" />
</div>

<div class="search">
<form method="get" action="http://symfony.com/search">
<div class="form-row">

<label for="search-id">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAABUElEQVQoz2NgAIJ29iBdD0d7X2cPb+tY2f9MDMjgP2O2hKu7vS8CBlisZUNSMJ3fxRMkXO61wm2ue6I3iB1q8Z8ZriDZFCS03fm/wX+1/xp/TBo8QPxeqf+MUAW+QIFKj/+q/wX/c/3n/i/6Qd/bx943z/Q/K1SBI1D9fKv/AhCn/Wf5L5EHdFGKw39OqAIXoPpOMziX4T9/DFBBnuN/HqhAEtCKCNf/XDA/rZRyAmrpsvrPDVUw3wrkqCiLaewg6TohX1d7X0ffs5r/OaAKfinmgt3t4ulr4+Xg4ANip3j+l/zPArNT4LNOD0pAgWCSOUIBy3+h/+pXbBa5tni0eMx23+/mB1YSYnENroT5Pw/QSOX/mkCo+l/jgo0v2KJA643s8PgAmsMBDCbu/5xALHPB2husxN9uCzsDOgAq5kAoaZVnYMCh5Ky1r88Eh/+iABM8jUk7ClYIAAAAAElFTkSuQmCC" alt="Search on Symfony website" />
</label>

<input name="q" id="search-id" type="search" placeholder="Search on Symfony website" />

<button type="submit" class="sf-button">
<span class="border-l">
<span class="border-r">
<span class="btn-bg">OK</span>
</span>
</span>
</button>
</div>
</form>
</div>
</div>

<div class="sf-reset">
<div class="block">
<div class="symfony-block-content">
<h1 class="title">Configuration Checker</h1>
<p>
This script analyzes your system to check whether is
ready to run Symfony applications.
</p>

<?php if ($hasMajorProblems): ?>
<h2 class="ko">Major problems</h2>
<p>Major problems have been detected and <strong>must</strong> be fixed before continuing:</p>
<ol>
<?php foreach ($majorProblems as $problem): ?>
<li><?php echo $problem->getTestMessage() ?>
<p class="help"><em><?php echo $problem->getHelpHtml() ?></em></p>
</li>
<?php endforeach; ?>
</ol>
<?php endif; ?>

<?php if ($hasMinorProblems): ?>
<h2>Recommendations</h2>
<p>
<?php if ($hasMajorProblems): ?>Additionally, to<?php else: ?>To<?php endif; ?> enhance your Symfony experience,
it’s recommended that you fix the following:
</p>
<ol>
<?php foreach ($minorProblems as $problem): ?>
<li><?php echo $problem->getTestMessage() ?>
<p class="help"><em><?php echo $problem->getHelpHtml() ?></em></p>
</li>
<?php endforeach; ?>
</ol>
<?php endif; ?>

<?php if ($symfonyRequirements->hasPhpConfigIssue()): ?>
<p id="phpini">*
<?php if ($symfonyRequirements->getPhpIniPath()): ?>
Changes to the <strong>php.ini</strong> file must be done in "<strong><?php echo $symfonyRequirements->getPhpIniPath() ?></strong>".
<?php else: ?>
To change settings, create a "<strong>php.ini</strong>".
<?php endif; ?>
</p>
<?php endif; ?>

<?php if (!$hasMajorProblems && !$hasMinorProblems): ?>
<p class="ok">All checks passed successfully. Your system is ready to run Symfony applications.</p>
<?php endif; ?>

<ul class="symfony-install-continue">
<?php if ($hasMajorProblems || $hasMinorProblems): ?>
<li><a href="check.php">Re-check configuration</a></li>
<?php endif; ?>
</ul>
</div>
</div>
</div>
</div>
</body>
</html>

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

@@ -1,24 +0,0 @@
<?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';
}
}

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

@@ -1,31 +0,0 @@
<?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;
}
}

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

@@ -1,31 +0,0 @@
<?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;
}
}

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

@@ -1,31 +0,0 @@
<?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;
}
}

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

@@ -1,31 +0,0 @@
<?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;
}
}

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

@@ -1,31 +0,0 @@
<?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;
}
}

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

@@ -1,31 +0,0 @@
<?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;
}
}

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

@@ -1,31 +0,0 @@
<?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;
}
}

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

@@ -1,17 +0,0 @@
<?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
{
}

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

@@ -1,17 +0,0 @@
<?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
{
}

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

@@ -1,31 +0,0 @@
<?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;
}
}

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

@@ -1,17 +0,0 @@
<?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
{
}

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

@@ -1,17 +0,0 @@
<?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>

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

@@ -1,21 +0,0 @@
<?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>

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

@@ -1,26 +0,0 @@
<?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>

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

@@ -1,21 +0,0 @@
<?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>

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

@@ -1,28 +0,0 @@
<?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>

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

@@ -1,17 +0,0 @@
<?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>

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

@@ -1,21 +0,0 @@
<?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>

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

@@ -1,26 +0,0 @@
<?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>

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

@@ -1,7 +0,0 @@
<?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>

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

@@ -1,7 +0,0 @@
<?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>

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

@@ -1,7 +0,0 @@
<?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>

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

@@ -1,7 +0,0 @@
<?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>

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

@@ -1,7 +0,0 @@
<?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>

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

@@ -1,7 +0,0 @@
<?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>

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

@@ -1,24 +0,0 @@
<?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';
}
}

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

@@ -1,31 +0,0 @@
<?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;
}
}

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

@@ -1,31 +0,0 @@
<?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;
}
}

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

@@ -1,31 +0,0 @@
<?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;
}
}

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

@@ -1,31 +0,0 @@
<?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;
}
}

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

@@ -1,13 +0,0 @@
<?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>

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

@@ -1,15 +0,0 @@
<?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>

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

@@ -1,13 +0,0 @@
<?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>

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

@@ -1,15 +0,0 @@
<?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>

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

@@ -1,7 +0,0 @@
<?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>

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

@@ -1,7 +0,0 @@
<?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>

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

@@ -1,7 +0,0 @@
<?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>

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

@@ -1,7 +0,0 @@
<?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>

+ 6
- 24
src/Entity/Project.php View File

@@ -2,9 +2,7 @@

namespace App\Entity;

use App\Application\Sonata\MediaBundle\Entity\Media;
use Doctrine\ORM\Mapping as ORM;
use Sonata\MediaBundle\Model\MediaInterface;

/**
* Class Project
@@ -37,12 +35,12 @@ class Project
*/
private $codeName;

/**
* @var Media
*
* @ORM\ManyToOne(targetEntity="App\Application\Sonata\MediaBundle\Entity\Media")
*/
protected $media;
// /**
// * @var Media
// *
// * @ORM\ManyToOne(targetEntity="App\Application\Sonata\MediaBundle\Entity\Media")
// */
// protected $media;


/**
@@ -92,20 +90,4 @@ class Project

return $this;
}

/**
* @param MediaInterface $media
*/
public function setMedia(?MediaInterface $media)
{
$this->media = $media;
}

/**
* @return MediaInterface
*/
public function getMedia()
{
return $this->media;
}
}

+ 0
- 65
templates/admin/layout.html.twig View File

@@ -1,65 +0,0 @@
{% extends '@SonataAdmin/standard_layout.html.twig' %}
{#
{% block stylesheets %}
{{ parent() }}

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
<link rel="stylesheet" href="{{ asset('build/admin-style.css') }}"/>
<link rel="stylesheet" href="{{ asset('bundles/sonatatranslation/css/sonata-translation.css') }}"/>
{% endblock %}

{% block javascripts %}
{{ parent() }}

<script src="https://cdn.ckeditor.com/ckeditor5/10.0.0/classic/ckeditor.js"></script>
<script type="text/javascript" src="{{ asset('build/admin.js') }}"></script>
{% endblock %}
#}

{% block logo %}
{% spaceless %}
<a class="logo" href="{{ path('sonata_admin_dashboard') }}">
{% if 'single_image' == sonata_admin.adminPool.getOption('title_mode') or 'both' == sonata_admin.adminPool.getOption('title_mode') %}
<img src="{{ jotunImage }}" alt="{{ sonata_admin.adminPool.title }}" style="max-width:none;max-height:95%;">
{% endif %}
</a>
{% endspaceless %}
{% endblock %}

{% block side_bar_after_nav_content %}
<a href="https://www.laszlolang.com" rel="noreferrer" target="_blank">
www.laszlolang.com &copy; 2010-{{ "now"|date('Y') }} <br>
v{{ jotunVersion }}
</a>
{% endblock %}

{% block sonata_top_nav_menu %}
{% if app.user %}
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
{% block sonata_top_nav_menu_add_block %}
{% if is_granted(sonata_admin.adminPool.getOption('role_admin')) %}
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
<i class="fa fa-plus-square fa-fw" aria-hidden="true"></i>
<i class="fa fa-caret-down" aria-hidden="true"></i>
</a>
{% include get_global_template('add_block') %}
</li>
{% endif %}
{% endblock %}
{% block sonata_top_nav_menu_user_block %}
<li class="dropdown user-menu">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
<i class="fa fa-user fa-fw" aria-hidden="true"></i>
<i class="fa fa-caret-down" aria-hidden="true"></i>
</a>
<ul class="dropdown-menu dropdown-user">
{% include get_global_template('user_block') %}
</ul>
</li>
{% endblock %}
</ul>
</div>
{% endif %}
{% endblock %}

+ 0
- 124
templates/bundles/SonataUserBundle/Admin/Security/login.html.twig View File

@@ -1,124 +0,0 @@
{#

This file is part of the Sonata package.

(c) Thomas Rabaix <thomas.rabaix@sonata-project.org>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.

#}

{% extends base_template %}

{% block sonata_nav %}
{% endblock sonata_nav %}

{% block logo %}
{% endblock logo %}

{% block sonata_left_side %}
{% endblock sonata_left_side %}

{% block body_attributes %}class="sonata-bc login-page"{% endblock %}

{% block sonata_wrapper %}

<div class="login-box">
{% block login_box_header %}
<div class="login-logo">
<a href="{{ path('sonata_admin_dashboard') }}">
{% if sonata_admin.adminPool.getOption('title_mode') in ['single_image', 'both'] %}
<div>
<img style="width:250px" src="{{ asset(sonata_admin.adminPool.titlelogo) }}" alt="{{ sonata_admin.adminPool.title }}">
</div>
{% endif %}
{% if sonata_admin.adminPool.getOption('title_mode') in ['single_text', 'both'] %}
<span>{{ sonata_admin.adminPool.title }}</span>
{% endif %}
</a>
</div>
{% endblock %}
<div class="login-box-body">
{% block sonata_user_login_form %}
{% block sonata_user_login_error %}
{% if error %}
<div class="alert alert-danger alert-error">
{{ error.messageKey|trans(error.messageData, 'security') }}
</div>
{% endif %}
{% endblock %}
<p class="login-box-msg">{{ 'title_user_authentication'|trans({}, 'SonataUserBundle') }}</p>
{% if qrCodeUrl is defined %}
<div class="row">
<div class="col-xs-12">
<p align="middle"> <img src="{{ qrCodeUrl }}" alt="QR-code"></p>
<p align="middle">{{ 'qr_code_secret'|trans({}, 'SonataUserBundle') }}: {{ qrSecret }}</p>
<p align="middle">
<a href="{{ path('sonata_admin_dashboard') }}">{{ 'qr_go_next'|trans({}, 'SonataUserBundle') }}</a>
</p>
</div>
</div>
{% elseif two_step_submit|default(false) %}
<form method="POST" role="form">
{% if state == 'error' %}
<div class="alert alert-error">{{ 'label_two_step_code_error'|trans({}, 'SonataUserBundle') }}</div>
{% endif %}
<label for="_code">{{ 'label_two_step_code'|trans({}, 'SonataUserBundle') }}</label>
<div class="input-group input-group-lg">
<input type="text" class="form-control" id="_code" name="_code" autocomplete='off' />
<span class="input-group-btn">
<input class="btn btn-primary"
id="_submit"
name="_submit"
type="submit"
value="{{ 'security.login.submit'|trans({}, 'FOSUserBundle') }}" />
</span>
</div>
<span class="help-block sonata-ba-field-help">{{ 'message_two_step_code_help'|trans({}, 'SonataUserBundle') }}</span>
</form>
{% else %}
<form action="{{ path("sonata_user_admin_security_check") }}" method="post" role="form">
<input type="hidden" name="_csrf_token" value="{{ csrf_token }}"/>

<div class="form-group has-feedback">
<input class="form-control"
id="username"
name="_username"
placeholder="{{ 'security.login.username'|trans({}, 'SonataUserBundle') }}"
required="required"
type="text"
value="{{ last_username }}"/>
<span class="glyphicon glyphicon-user form-control-feedback"></span>
</div>

<div class="form-group has-feedback">
<input class="form-control"
id="password"
name="_password"
placeholder="{{ 'security.login.password'|trans({}, 'SonataUserBundle') }}"
required="required"
type="password"/>
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>

<div class="row">
<div class="col-xs-8">
<div class="checkbox">
<label>
<input type="checkbox" id="remember_me" name="_remember_me" value="on"/>
{{ 'security.login.remember_me'|trans({}, 'FOSUserBundle') }}
</label>
</div>
</div>
<div class="col-xs-4">
<button type="submit" class="btn btn-primary btn-block btn-flat">{{ 'security.login.submit'|trans({}, 'FOSUserBundle') }}</button>
</div>
</div>
</form>
{% endif %}
{% endblock %}
</div>
</div>

{% endblock sonata_wrapper %}

+ 1
- 1
templates/default/index.html.twig View File

@@ -30,7 +30,7 @@
<div class="owl-carousel owl-theme">
{% for item in project %}
<div>
{% thumbnail item.media, 'large' %}
{# {% thumbnail item.media, 'large' %}#}
</div>
{% endfor %}
</div>


Loading…
Cancel
Save