This was tested on:
- Ubuntu 14.04 x64
- Ubuntu 16.04 x64
using Org.BouncyCastle.Crypto; | |
using Org.BouncyCastle.Crypto.Parameters; | |
using Org.BouncyCastle.OpenSsl; | |
using Org.BouncyCastle.Security; | |
using System; | |
using System.IO; | |
using System.Security.Cryptography; | |
namespace MyProject.Data.Encryption | |
{ |
First of all, ensure you don't have any deprecated!
The Symfony documentation explains it well, but let's sum up:
$ composer require --dev symfony/phpunit-bridge
)deprecation error
handled* { | |
font-size: 12pt; | |
font-family: monospace; | |
font-weight: normal; | |
font-style: normal; | |
text-decoration: none; | |
color: black; | |
cursor: default; | |
} |
// by Erik Wrenholt | |
import java.util.*; | |
class Mandelbrot | |
{ | |
static int BAILOUT = 16; | |
static int MAX_ITERATIONS = 1000; | |
private static int iterate(float x, float y) | |
{ |
# Hello, and welcome to makefile basics. | |
# | |
# You will learn why `make` is so great, and why, despite its "weird" syntax, | |
# it is actually a highly expressive, efficient, and powerful way to build | |
# programs. | |
# | |
# Once you're done here, go to | |
# http://www.gnu.org/software/make/manual/make.html | |
# to learn SOOOO much more. |
In order to generate and log a warning message about a deprecated Symfony feature, use the trigger_error()
function as follows:
trigger_error('The enctype method of the form helper was removed. You should use the new method start instead.', E_USER_DEPRECATED);
Please, be as explicit as possible in the deprecation message and always explain the alternative way to use that feature, property, method or class.
{% import 'macro.html.twig' as macro %} | |
{{ attribute(macro, 'type_1', 'Foobar') }} {# <p>Type One Foobar</p> #} | |
{{ attribute(macro, 'type_2', 'Barfoo') }} {# <p>Type Two Barfoo</p> #} |
I say "animated gif" but in reality I think it's irresponsible to be serving "real" GIF files to people now. You should be serving gfy's, gifv's, webm, mp4s, whatever. They're a fraction of the filesize making it easier for you to deliver high fidelity, full color animation very quickly, especially on bad mobile connections. (But I suppose if you're just doing this for small audiences (like bug reporting), then LICEcap is a good solution).
<?php | |
namespace App\EventListener; | |
use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent; | |
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface; | |
class ExceptionRethrowListener | |
{ | |
public function onKernelException(GetResponseForExceptionEvent $event) |