@@ -17,4 +17,5 @@ return [ | |||
EasyCorp\Bundle\EasyAdminBundle\EasyAdminBundle::class => ['all' => true], | |||
FOS\CKEditorBundle\FOSCKEditorBundle::class => ['all' => true], | |||
Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle::class => ['all' => true], | |||
Liip\ImagineBundle\LiipImagineBundle::class => ['all' => true], | |||
]; |
@@ -0,0 +1,4 @@ | |||
# See dos how to configure the bundle: https://symfony.com/doc/current/bundles/LiipImagineBundle/basic-usage.html | |||
liip_imagine: | |||
# valid drivers options include "gd" or "gmagick" or "imagick" | |||
driver: "gd" |
@@ -9,5 +9,5 @@ stof_doctrine_extensions: | |||
timestampable: true # not needed: listeners are not enabled by default | |||
sluggable: true | |||
blameable: true | |||
translatable: true | |||
translatable: false | |||
@@ -15,4 +15,8 @@ logout: | |||
artgris_bundle_file_manager: | |||
resource: "@ArtgrisFileManagerBundle/Controller" | |||
type: annotation | |||
prefix: /manager | |||
prefix: /manager | |||
home: | |||
path: / | |||
controller: App\Controller\Frontend\DefaultController:home |
@@ -0,0 +1,2 @@ | |||
_liip_imagine: | |||
resource: "@LiipImagineBundle/Resources/config/routing.yaml" |
@@ -4,7 +4,7 @@ | |||
# 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: | |||
app.locales: ["fr", "en"] | |||
app.locales: ["fr"] | |||
app.default_locale: "fr" | |||
services: | |||
# default configuration for services in *this* file |
@@ -0,0 +1,31 @@ | |||
<?php | |||
declare(strict_types=1); | |||
namespace DoctrineMigrations; | |||
use Doctrine\DBAL\Schema\Schema; | |||
use Doctrine\Migrations\AbstractMigration; | |||
/** | |||
* Auto-generated Migration: Please modify to your needs! | |||
*/ | |||
final class Version20210514131437 extends AbstractMigration | |||
{ | |||
public function getDescription() : string | |||
{ | |||
return ''; | |||
} | |||
public function up(Schema $schema) : void | |||
{ | |||
// this up() migration is auto-generated, please modify it to your needs | |||
$this->addSql('ALTER TABLE file CHANGE image path VARCHAR(255) DEFAULT NULL'); | |||
} | |||
public function down(Schema $schema) : void | |||
{ | |||
// this down() migration is auto-generated, please modify it to your needs | |||
$this->addSql('ALTER TABLE file CHANGE path image VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`'); | |||
} | |||
} |
@@ -0,0 +1,36 @@ | |||
<?php | |||
declare(strict_types=1); | |||
namespace DoctrineMigrations; | |||
use Doctrine\DBAL\Schema\Schema; | |||
use Doctrine\Migrations\AbstractMigration; | |||
/** | |||
* Auto-generated Migration: Please modify to your needs! | |||
*/ | |||
final class Version20210514135359 extends AbstractMigration | |||
{ | |||
public function getDescription() : string | |||
{ | |||
return ''; | |||
} | |||
public function up(Schema $schema) : void | |||
{ | |||
// this up() migration is auto-generated, please modify it to your needs | |||
$this->addSql('CREATE TABLE news (id INT AUTO_INCREMENT NOT NULL, image_id INT DEFAULT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, date_event DATETIME DEFAULT NULL, title VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, meta_title VARCHAR(255) DEFAULT NULL, meta_description LONGTEXT DEFAULT NULL, old_urls LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', slug VARCHAR(255) NOT NULL, position DOUBLE PRECISION NOT NULL, status DOUBLE PRECISION NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, INDEX IDX_1DD399503DA5256D (image_id), INDEX IDX_1DD39950B03A8386 (created_by_id), INDEX IDX_1DD39950896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); | |||
$this->addSql('ALTER TABLE news ADD CONSTRAINT FK_1DD399503DA5256D FOREIGN KEY (image_id) REFERENCES file (id)'); | |||
$this->addSql('ALTER TABLE news ADD CONSTRAINT FK_1DD39950B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)'); | |||
$this->addSql('ALTER TABLE news ADD CONSTRAINT FK_1DD39950896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)'); | |||
$this->addSql('ALTER TABLE page DROP locales_enabled'); | |||
} | |||
public function down(Schema $schema) : void | |||
{ | |||
// this down() migration is auto-generated, please modify it to your needs | |||
$this->addSql('DROP TABLE news'); | |||
$this->addSql('ALTER TABLE page ADD locales_enabled LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci` COMMENT \'(DC2Type:array)\''); | |||
} | |||
} |
@@ -0,0 +1,34 @@ | |||
<?php | |||
declare(strict_types=1); | |||
namespace DoctrineMigrations; | |||
use Doctrine\DBAL\Schema\Schema; | |||
use Doctrine\Migrations\AbstractMigration; | |||
/** | |||
* Auto-generated Migration: Please modify to your needs! | |||
*/ | |||
final class Version20210514153731 extends AbstractMigration | |||
{ | |||
public function getDescription() : string | |||
{ | |||
return ''; | |||
} | |||
public function up(Schema $schema) : void | |||
{ | |||
// this up() migration is auto-generated, please modify it to your needs | |||
$this->addSql('DROP TABLE news'); | |||
} | |||
public function down(Schema $schema) : void | |||
{ | |||
// this down() migration is auto-generated, please modify it to your needs | |||
$this->addSql('CREATE TABLE news (id INT AUTO_INCREMENT NOT NULL, image_id INT DEFAULT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, date_event DATETIME DEFAULT NULL, title VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, description LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, meta_title VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, meta_description LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, old_urls LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci` COMMENT \'(DC2Type:array)\', slug VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, position DOUBLE PRECISION NOT NULL, status DOUBLE PRECISION NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, dev_alias VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, INDEX IDX_1DD39950896DBBDE (updated_by_id), INDEX IDX_1DD399503DA5256D (image_id), INDEX IDX_1DD39950B03A8386 (created_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \'\' '); | |||
$this->addSql('ALTER TABLE news ADD CONSTRAINT FK_1DD399503DA5256D FOREIGN KEY (image_id) REFERENCES file (id)'); | |||
$this->addSql('ALTER TABLE news ADD CONSTRAINT FK_1DD39950896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)'); | |||
$this->addSql('ALTER TABLE news ADD CONSTRAINT FK_1DD39950B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)'); | |||
} | |||
} |
@@ -0,0 +1,12 @@ | |||
<IfModule mod_rewrite.c> | |||
Options -MultiViews | |||
RewriteEngine On | |||
RewriteCond %{REQUEST_FILENAME} !-f | |||
RewriteRule ^(.*)$ index.php [QSA,L] | |||
</IfModule> | |||
<IfModule !mod_rewrite.c> | |||
<IfModule mod_alias.c> | |||
RedirectMatch 302 ^/$ /index.php/ | |||
</IfModule> | |||
</IfModule> |
@@ -0,0 +1,25 @@ | |||
require 'compass/import-once/activate' | |||
# Require any additional compass plugins here. | |||
# Set this to the root of your project when deployed: | |||
http_path = "/" | |||
css_dir = "stylesheets" | |||
sass_dir = "sass" | |||
images_dir = "images" | |||
javascripts_dir = "javascripts" | |||
# You can select your preferred output style here (can be overridden via the command line): | |||
# output_style = :expanded or :nested or :compact or :compressed | |||
# To enable relative paths to assets via compass helper functions. Uncomment: | |||
# relative_assets = true | |||
# To disable debugging comments that display the original location of your selectors. Uncomment: | |||
# line_comments = false | |||
# If you prefer the indented syntax, you might want to regenerate this | |||
# project again passing --syntax sass, or you can uncomment this: | |||
# preferred_syntax = :sass | |||
# and then run: | |||
# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass |
@@ -0,0 +1,5 @@ | |||
/* Welcome to Compass. Use this file to write IE specific override styles. | |||
* Import this file using the following HTML or equivalent: | |||
* <!--[if IE]> | |||
* <link href="/stylesheets/ie.css" media="screen, projection" rel="stylesheet" type="text/css" /> | |||
* <![endif]--> */ |
@@ -0,0 +1,3 @@ | |||
/* Welcome to Compass. Use this file to define print styles. | |||
* Import this file using the following HTML or equivalent: | |||
* <link href="/stylesheets/print.css" media="print" rel="stylesheet" type="text/css" /> */ |
@@ -0,0 +1,9 @@ | |||
/* Welcome to Compass. | |||
* In this file you should write your main styles. (or centralize your imports) | |||
* Import this file using the following HTML or equivalent: | |||
* <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" /> */ | |||
@import "compass"; | |||
@import "compass/reset"; | |||
@import "_base.scss"; |
@@ -0,0 +1,5 @@ | |||
/* Welcome to Compass. Use this file to write IE specific override styles. | |||
* Import this file using the following HTML or equivalent: | |||
* <!--[if IE]> | |||
* <link href="/stylesheets/ie.css" media="screen, projection" rel="stylesheet" type="text/css" /> | |||
* <![endif]--> */ |
@@ -0,0 +1,3 @@ | |||
/* Welcome to Compass. Use this file to define print styles. | |||
* Import this file using the following HTML or equivalent: | |||
* <link href="/stylesheets/print.css" media="print" rel="stylesheet" type="text/css" /> */ |
@@ -0,0 +1,68 @@ | |||
/* Welcome to Compass. | |||
* In this file you should write your main styles. (or centralize your imports) | |||
* Import this file using the following HTML or equivalent: | |||
* <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" /> */ | |||
/* line 5, ../../../../../lib/gems/2.7.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */ | |||
html, body, div, span, applet, object, iframe, | |||
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |||
a, abbr, acronym, address, big, cite, code, | |||
del, dfn, em, img, ins, kbd, q, s, samp, | |||
small, strike, strong, sub, sup, tt, var, | |||
b, u, i, center, | |||
dl, dt, dd, ol, ul, li, | |||
fieldset, form, label, legend, | |||
table, caption, tbody, tfoot, thead, tr, th, td, | |||
article, aside, canvas, details, embed, | |||
figure, figcaption, footer, header, hgroup, | |||
menu, nav, output, ruby, section, summary, | |||
time, mark, audio, video { | |||
margin: 0; | |||
padding: 0; | |||
border: 0; | |||
font: inherit; | |||
font-size: 100%; | |||
vertical-align: baseline; | |||
} | |||
/* line 22, ../../../../../lib/gems/2.7.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */ | |||
html { | |||
line-height: 1; | |||
} | |||
/* line 24, ../../../../../lib/gems/2.7.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */ | |||
ol, ul { | |||
list-style: none; | |||
} | |||
/* line 26, ../../../../../lib/gems/2.7.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */ | |||
table { | |||
border-collapse: collapse; | |||
border-spacing: 0; | |||
} | |||
/* line 28, ../../../../../lib/gems/2.7.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */ | |||
caption, th, td { | |||
text-align: left; | |||
font-weight: normal; | |||
vertical-align: middle; | |||
} | |||
/* line 30, ../../../../../lib/gems/2.7.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */ | |||
q, blockquote { | |||
quotes: none; | |||
} | |||
/* line 103, ../../../../../lib/gems/2.7.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */ | |||
q:before, q:after, blockquote:before, blockquote:after { | |||
content: ""; | |||
content: none; | |||
} | |||
/* line 32, ../../../../../lib/gems/2.7.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */ | |||
a img { | |||
border: none; | |||
} | |||
/* line 116, ../../../../../lib/gems/2.7.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */ | |||
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary { | |||
display: block; | |||
} |
@@ -0,0 +1,16 @@ | |||
<?php | |||
namespace App\Controller\Frontend; | |||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; | |||
use Symfony\Component\Routing\Annotation\Route; | |||
class DefaultController extends AbstractController | |||
{ | |||
public function home() | |||
{ | |||
return $this->render('frontend/home.html.twig'); | |||
} | |||
} |