Skip to content

Instantly share code, notes, and snippets.

View kamil161g's full-sized avatar

Kamil Gąsior kamil161g

View GitHub Profile
var __PDF_DOC,
__CURRENT_PAGE,
__TOTAL_PAGES,
__PAGE_RENDERING_IN_PROGRESS = 0,
__CANVAS = $('#pdf-canvas').get(0),
__CANVAS_CTX = __CANVAS.getContext('2d');
function showPDF(pdf_url) {
$("#pdf-loader").show();
<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\MatchsRepository")
*/
<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\InformationTeamRepository")
*/
@kamil161g
kamil161g / a.php
Created November 7, 2017 22:49
a.php
>add('plainPassword', RepeatedType::class, array(
'type' => PasswordType::class,
'first_options' => array('constraints'=> new NotBlank(['message' => 'Wypełnij pole Hasło.']),
'constraints' => new Length([
'min' => 8,
'minMessage' => 'Hasło nie może być krótsze niż 8 znaków.',
'max' => 24,
'maxMessage' => 'Haslo nie może być dłuższe niż 24 znaki.'
]),
'label' => 'Hasło'),
>add('plainPassword', RepeatedType::class, array(
'type' => PasswordType::class,
'first_options' => array('constraints'=> new NotBlank(['message' => 'Wypełnij pole Hasło.']),
'constraints' => new Length([
'min' => 8,
'minMessage' => 'Hasło nie może być krótsze niż 8 znaków.',
'max' => 24,
'maxMessage' => 'Haslo nie może być dłuższe niż 24 znaki.'
]),
'label' => 'Hasło'),
<?php
namespace AppBundle\Entity;
use Symfony\Component\Validator\Constraints as Assert;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Security\Core\User\UserInterface;
/**
* users