New! Checkout our new Forums homepage! Follow the latest activity in eZ Publish Forums on Share.ez.no, Projects.ez.no and StackOverflow.com


Whether you're a B2B publication such as Habitat Magazine or a B2C publication such as The Christian Science Monitor, you've likely been facing challenges around advertising, the erosion of print dollars, and intense competition for reader attention (both in print and digital) for years. To stay competitive and be able to thrive, you need to innovate digitally. Carol Ott, Publisher and Editor-in-Chief of Habitat Magazine, states that "without digital, we would no longer be in business". Is your digital platform and website enabling or hindering you?

02/21/2018 02:54 pm   Mugo Web Blog   Mirror   Link   @18
@ezpublishlegacy
ezpublishlegacy pushed to master in ezpublishlegacy/phpunit
Feb 21, 2018
02/21/2018 12:37 pm   eZPublishLegacy @ GitHub   Mirror   Link   @12
@ezpublishlegacy
ezpublishlegacy pushed to master in ezpublishlegacy/ezpublish-kernel
  • @mikadamczyk 1fb1b70
    EZP-28768: Difference in edit and preview mode for map location (#2236)
Feb 21, 2018
02/21/2018 12:15 pm   eZPublishLegacy @ GitHub   Mirror   Link   @14
@ezecosystem
ezecosystem pushed to master in ezecosystem/Sylius
Feb 21, 2018
02/21/2018 12:08 pm   eZecosystem @ GitHub   Mirror   Link   @12
@ezecosystem
ezecosystem pushed to master in ezecosystem/ezpublish-kernel
  • @mikadamczyk 1fb1b70
    EZP-28768: Difference in edit and preview mode for map location (#2236)
Feb 21, 2018
02/21/2018 11:59 am   eZecosystem @ GitHub   Mirror   Link   @18
@ezpublishlegacy
ezpublishlegacy pushed to master in ezpublishlegacy/ezstudio
Feb 20, 2018
02/20/2018 12:22 pm   eZPublishLegacy @ GitHub   Mirror   Link   @10
@ezpublishlegacy
ezpublishlegacy pushed to master in ezpublishlegacy/ezpublish-kernel
  • @andrerom faa5997
    EZP-27924: As a Developer I want lazy loading certain API properties …
  • @alongosz 77d9d35
    EZP-28110: As a developer, I want to define attributes for custom tag…
  • 1 more commit »
Feb 20, 2018
02/20/2018 12:19 pm   eZPublishLegacy @ GitHub   Mirror   Link   @10
@ezpublishlegacy
ezpublishlegacy pushed to master in ezpublishlegacy/ezpublish-api
  • @alongosz 3c3a2a8
    EZP-28110: As a developer, I want to define attributes for custom tag…
Feb 20, 2018
02/20/2018 12:17 pm   eZPublishLegacy @ GitHub   Mirror   Link   @14
@ezpublishlegacy
ezpublishlegacy pushed to master in ezpublishlegacy/ezplatform
Feb 20, 2018
02/20/2018 12:17 pm   eZPublishLegacy @ GitHub   Mirror   Link   @10
@ezpublishlegacy
ezpublishlegacy pushed to master in ezpublishlegacy/ezlegacy-tools-bundle
Feb 20, 2018
02/20/2018 12:14 pm   eZPublishLegacy @ GitHub   Mirror   Link   @12
@ezpublishlegacy
ezpublishlegacy pushed to master in ezpublishlegacy/ezcluster
Feb 20, 2018
02/20/2018 12:11 pm   eZPublishLegacy @ GitHub   Mirror   Link   @10
@ezecosystem
ezecosystem pushed to master in ezecosystem/ezstudio
Feb 20, 2018
02/20/2018 12:05 pm   eZecosystem @ GitHub   Mirror   Link   @12
@ezecosystem
ezecosystem pushed to master in ezecosystem/ezpublish-kernel
  • @andrerom faa5997
    EZP-27924: As a Developer I want lazy loading certain API properties …
  • @alongosz 77d9d35
    EZP-28110: As a developer, I want to define attributes for custom tag…
  • 1 more commit »
Feb 20, 2018
02/20/2018 12:05 pm   eZecosystem @ GitHub   Mirror   Link   @12
@ezecosystem
ezecosystem pushed to master in ezecosystem/ezpublish-api
  • @alongosz 3c3a2a8
    EZP-28110: As a developer, I want to define attributes for custom tag…
Feb 20, 2018
02/20/2018 12:04 pm   eZecosystem @ GitHub   Mirror   Link   @12
@ezecosystem
ezecosystem pushed to master in ezecosystem/ezplatform
Feb 20, 2018
02/20/2018 12:03 pm   eZecosystem @ GitHub   Mirror   Link   @12

Deprecated the checkDNS option of the URL validator

Contributed by
Roland Franssen
in #25516.

In Symfony 4.1, the checkDNS option (and its related dnsMessage option) of the Url constraint has been deprecated. This option allowed to check whether the host associated with the given URL existed. It used the checkdnsrr() PHP function and it's been deprecated (and removed in Symfony 5.0) because its results are not fully reliable.

No alternative is provided, so if you still want to apply this validation, create a custom validation and use the checkdnsrr() PHP function.

Allow to pass custom values to Expression validator

Contributed by
Gabriel Ostrolucký
in #25504.

In Symfony 4.1, the Expression constraint accepts a new option called values to pass arbitrary values and use them in your expressions:

1
2
3
4
5
6
7
8
use Symfony\Component\Validator\Constraints\Expression;

$constraint = new Expression([
    'expression' => 'value + custom == 2',
    'values' => [
        'custom' => 1,
    ],
]);

Added a canonicalize option to the Locale validator

Contributed by
Javier Spagnoletti
in #22353.

In Symfony 4.1, the Locale constraint defines a new boolean option called canonicalize. If true, the given locale value is transformed into its canonical form before validating it.

For example, FR-fr.utf8 is transformed into fr_FR, UZ-cYRL-uz is transformed into uz_Cyrl_UZ, etc.

1
2
3
4
5
6
7
use Symfony\Component\Validator\Constraints as Assert;

class User
{
    /** @Assert\Locale(canonicalize = "true") */
     protected $locale;
}

Added support for validating URLs without protocol

Contributed by
Peter Smeets
in #24308.

The Url constraint defines the protocols option to configure the protocols allowed for the URLs (['http', 'https'] by default). In Symfony 4.1 we added a new boolean option called relativeProtocol. If true, URLs without protocol (e.g. //example.com) are considered valid too:

1
2
3
4
5
6
7
use Symfony\Component\Validator\Constraints as Assert;

class Author
{
    /** @Assert\Url(relativeProtocol = "true") */
     protected $bioUrl;
}

Be trained by Symfony experts - 2018-02-19 Paris - 2018-02-19 Paris - 2018-02-21 Paris
02/19/2018 03:19 am   Symfony Blog   Mirror   Link   @14
refactor profile presentation (left + right sidebar)
02/18/2018 01:14 pm   Projects Commits   Mirror   Link   @18

This week Symfony added support for reproducible builds. In addition, it finished the feature to make Symfony's router the fastest PHP router and it also improved the dependency injection container performance.

Symfony development highlights

2.7 changelog:

  • 0b08f37: [Process] check PHP_BINDIR before $PATH in PhpExecutableFinder
  • 5a70b15, ce13854: [Security, Validator] added translations for Tagalog
  • aa3a04a: [Routing] throw 405 instead of 404 when redirect is not possible
  • 2bccaaa: [Serializer] optimizations and cleanups
  • b271683: [DependencyInjection] added null check for removeChild
  • 9d3d237: [Console] avoid emitting warning in hasParameterOption()
  • 233774c: [HttpFoundation] added x-zip-compressed to MimeTypeExtensionGuesser

3.4 changelog:

  • 267bf4c: [TwigBundle, WebProfilerBundle] fixed JS collision
  • b4cdb19: [PhpUnitBridge] added support for PHPUnit 7 in Coverage Listener
  • 0f4704d: [PHPUnitBridge] avoid running the remove command without any packages
  • 6b51add: don't mock the container builder in tests
  • b375957: [TwigBridge] applied some changes to support Bootstrap4 stable
  • 7bcccef: [Yaml] fixed a Yaml parser regression with comments and non-strings

Master changelog:

  • d418395: [Workflow] drop nofooter option in PlantUmlDumper
  • 5bc2753: [DoctrineBridge] added support for datetime immutable types in Doctrine type guesser
  • a9f2a09: [DependencyInjection] moved "include_once" out of closure factories
  • 06ab73b: [Intl] added polyfill for Locale::canonicalize()
  • a2f7982: [WebProfilerBundle] imply forward request by a new X-Previous-Debug-Token header
  • 4ef0b3e: [Routing] match 77.7x faster by compiling routes in one regexp
  • 4d6c481: [DependencyInjection] top micro benchmarks
  • d7658d2: [Routing] handle very large set of dynamic routes
  • e684973: [Validator] added support for protocolless URL validation
  • b0facfe: [Translation] added support for name on the unit node

Newest issues and pull requests

They talked about us


Be trained by Symfony experts - 2018-02-19 Paris - 2018-02-19 Paris - 2018-02-21 Paris
02/18/2018 03:07 am   Symfony Blog   Mirror   Link   @14

Via le Journal du Hacker, je suis tombé sur Config pour ne plus taper ses mots de passe MySQL et plus encore avec les Options file qui rappelle que le client MySQL en ligne de commande propose un fichier de configuration (~/.my.cnf) permettant de se simplifier la vie si on se connecte toujours aux mêmes machines/bases. Ce billet montre aussi l'option pager de ce fichier de configuration qui, comme son nom l'indique, permet de configurer un pager (more, less, neovim, ... ou ce que vous voulez) que l'auteur utilise pour mettre de la couleur dans le client MySQL / MariaDB avec Generic Colouriser. Bref, ce sont deux très bonnes astuces pour les utilisateurs de mysql en ligne de commande dont je fais partie.

Il se trouve qu'en plus, au travail, j'utilise une machine virtuelle. Et donc, pour accèder à MySQL, il me faut d'abord faire ouvrir un shell avec ssh pour ensuite lancer le client. Bien sûr, un bête alias permet de faire tout ça plus rapidement mais j'aime bien avoir mes outils de développement en local. En cherchant comment installer le client MySQL (et uniquement celui-ci) sur mon Mac, je suis tombé sur mycli et autant de le dire tout de suite, j'ai abandonné l'idée d'installer le client officiel :) En fait, mycli est un client MySQL (compatible avec MariaDB ou Percona) qui vient avec tout un tas de fonctionnalités vraiment pratiques et bien documentées comme la coloration syntaxique des requêtes, l'édition multi-ligne ou non, quelques commandes pratiques et surtout un complètement intelligent !

Capture d'écran de mycli dans un terminal

Il a sa propre configuration dans ~/.myclirc (qu'il génère au premier lancement avec les commentaires, encore une bonne idée) mais le plus beau, c'est qu'il utilise aussi ~/.my.cnf le fichier de configuration du client officiel et donc les 2 astuces citées plus haut fonctionnent parfaitement et directement dans cet outil !

Bref, pour le moment, mon .myclirc est celui par défaut (sauf le thème fruity) et mon .my.cnf ressemble à 

[client]
user = MONUSER
password = PASSWORD
host = vm.local

# ~/.grcat/mysql provient de https://github.com/nitso/colour-mysql-console
pager = 'grcat ~/.grcat/mysql|most'

J'utilise most comme pager mais j'hésite encore avec less qui propose une option pour ne pas paginer lorsque les données sont trop courtes ou Neovim dont j'ai vraiment l'habitude.

Dernier point, vous n'utilisez pas MySQL (ou MariaDB ou Percona) ? Pas de problème, l'auteur a écrit le même genre de clients pour d'autres serveur de base de données.

02/17/2018 11:28 am   pwet.fr/blog   Mirror   Link   @24
@ezpublishlegacy
ezpublishlegacy pushed to master in ezpublishlegacy/ezlegacy-tools-bundle
Feb 16, 2018
02/16/2018 12:40 pm   eZPublishLegacy @ GitHub   Mirror   Link   @22
@ezecosystem
ezecosystem pushed to master in ezecosystem/ezpublish-kernel
Feb 16, 2018
02/16/2018 12:11 pm   eZecosystem @ GitHub   Mirror   Link   @22
@ezpublishlegacy
ezpublishlegacy pushed to master in ezpublishlegacy/ezstudio
Feb 15, 2018
02/15/2018 12:44 pm   eZPublishLegacy @ GitHub   Mirror   Link   @18
@ezpublishlegacy
ezpublishlegacy pushed to master in ezpublishlegacy/ezpublish-spi
Feb 15, 2018
02/15/2018 12:37 pm   eZPublishLegacy @ GitHub   Mirror   Link   @24