View monnierdemo.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Test Visual Commerce</title>
</head>
<body>
<div id="widget-container-gallery"></div>
<!-- widget begins here -->
View widget-banner-headoo.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Test Visual Commerce</title>
</head>
<body>
<div id="widget-container-gallery"></div>
<p><a href = 'https://rawgit.com/kcassam/b93468132e2c700a2b868e8dda05e671/raw/3aeaeb6ebf87c2ae88ee4a75b42b34f8e09b9bcc/widget-banner-headoo.html'>demo</a></p>
View widget-gallery-headoo.html
View widget-ikks.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Test Visual Commerce</title>
</head>
<body>
<p><a href = 'https://rawgit.com/kcassam/56ebb828d9fb1869a3fd5425e9d02f98/raw/85c648e3cdbccf3077bce886aaa3eacfa8125e51/widget-banner.html'>see here</a></p>
<div id="widget-container-gallery"></div>
View code quality.yml
* https://medium.com/@ondrejmirtes/three-pillars-of-static-analysis-in-php-f3f5d7bfd61b#.6gjeme43d
* https://github.com/squizlabs/PHP_CodeSniffer
* https://github.com/doctrine/coding-standard/blob/master/README.md
* https://medium.com/@ondrejmirtes/phpstan-2939cd0ad0e3#.yb4muy168
View DoctrineHelper.php
<?php
//stackoverflow.com/questions/13069315/how-to-retry-transaction-after-a-deadlock-using-doctrine
//cannot retry : stackoverflow.com/questions/13069315/how-to-retry-transaction-after-a-deadlock-using-doctrine#comment31758644_13150683
//codedump.io/share/rjB45oiwtqwo/1/doctrine2-the-entitymanager-is-closed-how-to-reset-entity-manager-in-symfony2
namespace Headoo\UtilityBundle\Helper;
use Doctrine\DBAL\Exception\RetryableException;
use Doctrine\ORM\EntityManagerInterface;
use Psr\Log\LoggerInterface;