EasyCorp\Bundle\EasyAdminBundle\EasyAdminBundle::class => ['all' => true], | EasyCorp\Bundle\EasyAdminBundle\EasyAdminBundle::class => ['all' => true], | ||||
FOS\CKEditorBundle\FOSCKEditorBundle::class => ['all' => true], | FOS\CKEditorBundle\FOSCKEditorBundle::class => ['all' => true], | ||||
Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle::class => ['all' => true], | Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle::class => ['all' => true], | ||||
Liip\ImagineBundle\LiipImagineBundle::class => ['all' => true], | |||||
]; | ]; |
# 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" |
timestampable: true # not needed: listeners are not enabled by default | timestampable: true # not needed: listeners are not enabled by default | ||||
sluggable: true | sluggable: true | ||||
blameable: true | blameable: true | ||||
translatable: true | |||||
translatable: false | |||||
artgris_bundle_file_manager: | artgris_bundle_file_manager: | ||||
resource: "@ArtgrisFileManagerBundle/Controller" | resource: "@ArtgrisFileManagerBundle/Controller" | ||||
type: annotation | type: annotation | ||||
prefix: /manager | |||||
prefix: /manager | |||||
home: | |||||
path: / | |||||
controller: App\Controller\Frontend\DefaultController:home |
_liip_imagine: | |||||
resource: "@LiipImagineBundle/Resources/config/routing.yaml" |
# Put parameters here that don't need to change on each machine where the app is deployed | # 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 | # https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration | ||||
parameters: | parameters: | ||||
app.locales: ["fr", "en"] | |||||
app.locales: ["fr"] | |||||
app.default_locale: "fr" | app.default_locale: "fr" | ||||
services: | services: | ||||
# default configuration for services in *this* file | # default configuration for services in *this* file |
<?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`'); | |||||
} | |||||
} |
<?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)\''); | |||||
} | |||||
} |
<?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)'); | |||||
} | |||||
} |
<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> |
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 |
/* 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]--> */ |
/* 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" /> */ |
/* 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"; |
/* 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]--> */ |
/* 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" /> */ |
/* 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; | |||||
} |
<?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'); | |||||
} | |||||
} |