This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
monolog: | |
handlers: | |
main: | |
type: rotating_file | |
path: %kernel.logs_dir%/%kernel.environment%.log | |
level: error | |
max_files: 10 | |
action_level: error | |
bubble: true | |
slack: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# 1: Setup --------------------------------- #} | |
{# https://clipboardjs.com/ #} | |
{# 2: Input group -------------------------- #} | |
<div class="input-group"> | |
<label for="vcsRepo" class="input-group-label">{{ entity.vcsSystem }}:</label> | |
<input type="text" class="input-group-field" id="vcsRepo" name="vcsRepo" value="{{ entity.vcsRepo }}" /> | |
<div class="input-group-button"> | |
<button id="copyRepo" | |
data-clipboard-target="#vcsRepo" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Common\ContentBundle\DataTransformer; | |
use Symfony\Component\Form\DataTransformerInterface; | |
/** | |
* Class MarkdownTransformer | |
* @package Common\ContentBundle\DataTransformer | |
*/ | |
class MarkdownTransformer implements DataTransformerInterface |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Created by rwade@grayloon.com | |
* User: rwade | |
* Date: 4/26/17 | |
* Time: 9:53 AM | |
* @todo update output to be buffered realtime output | |
* @todo colored output | |
*/ | |
namespace AppBundle\Command; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Hoyt\UtilBundle; | |
use Aws\S3\S3Client; | |
/** | |
* Class AmazonS3Service | |
* | |
* @package Hoyt\UtilBundle | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Created by PhpStorm. | |
* User: rwade@grayloon.com | |
* Date: 10/2/17 | |
* Time: 12:18 PM | |
*/ | |
namespace Hoyt\UtilBundle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
... | |
"require": { | |
"luxifer/doctrine-functions": "~1.4", | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/php | |
<?php | |
echo "Running tests.. "; | |
exec('bin/phpunit', $output, $returnCode); | |
if ($returnCode !== 0) { | |
// Show full output | |
echo PHP_EOL . implode($output, PHP_EOL) . PHP_EOL; | |
echo "Aborting commit.." . PHP_EOL; | |
exit(1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Controller; | |
use Symfony\Component\HttpFoundation\Request; | |
use EasyCorp\Bundle\EasyAdminBundle\Controller\AdminController; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
use Google_Client; | |
use Google_Service_AnalyticsReporting; | |
class AdminDashboardController extends AdminController |