This is a complete stack for running Symfony 4 (latest version: Flex) into Docker containers using docker-compose tool.
Note: Docker must be already installed in your machine :)
- Clone this repository:
includes: | |
- vendor/phpstan/phpstan-symfony/extension.neon | |
parameters: | |
level: 8 | |
paths: | |
- src | |
excludes_analyse: | |
- ./src/Migrations | |
- ./src/Import/Config/Adapter/BackofficeMerchantDatabaseAdapter.php | |
symfony: |
wget https://getcomposer.org/composer-2.phar |
<?php | |
namespace App\Controller\Admin; | |
use App\Entity\Media; | |
use App\Form\MediaType; | |
use App\Repository\MediaRepository; | |
use App\Service\FileUploader; | |
use phpDocumentor\Reflection\Types\This; | |
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; |
<?php | |
namespace AppBundle\Controller; | |
use AppBundle\Service\VisionCriticalApi; | |
use DateTime; | |
use EasyWordpressBundle\Annotation\TemplateName; | |
use EasyWordpressBundle\Controller\WordpressController; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpFoundation\Response; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Leaflet multilayer example | CartoDB.js</title> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | |
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" /> | |
<style> | |
html, body, #map { | |
height: 100%; |
<?php | |
$aliases['stable'] = array( | |
'uri' => 'stable.dkan', | |
'root' => '/var/www/stable.dkan/docroot', | |
'db-url' => 'mysql://root:Sciawaker-n0wCit@localhost:3306/prod_dkan', | |
'remote-host' => '192.168.57.100', | |
'remote-user' => 'dkan', | |
'path-aliases' => array( | |
'%dump-dir' => '/home/dkan/db', | |
'%files' => 'sites/default/files' |
<?php | |
namespace AppBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
use Doctrine\Common\Collections\ArrayCollection; | |
use Symfony\Component\HttpFoundation\File\UploadedFile; | |
use Symfony\Component\Validator\Constraints as Assert; | |
/** |
var FormValidation = function () { | |
// basic validation | |
var handleValidation1 = function () { | |
// for more info visit the official plugin documentation: | |
// http://docs.jquery.com/Plugins/Validation | |
var form1 = $('#frm_createAccount'); | |
form1.validate({ | |
errorElement: 'span', //default input error message container |
{ | |
"company_registration":{ | |
"email":"baccouch7.taieb@gmail.com", | |
"username":"jjjjjj", | |
"plainPassword":{ | |
"first":"xxxxx", | |
"second":"xxxxx" | |
}, | |
"companyUser": { | |
"firstName": "Taieb", |