Skip to content
Snippets Groups Projects
Unverified Commit 744e4df4 authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire:
Browse files

Add DbpRelayCoreBundle move script

parent f89f53fa
Branches
Tags v0.1.22
No related merge requests found
Pipeline #60186 failed
#!/usr/bin/env php
<?php
###############################################################################################
# Moves the DbpRelayCoreBundle to bottom of the array in `config/bundles.php`.
###############################################################################################
// read the entire string
$str = file_get_contents('config/bundles.php');
$coreBundleString = " Dbp\Relay\CoreBundle\DbpRelayCoreBundle::class => ['all' => true],";
$str = str_replace($coreBundleString . "\n", '', $str);
$str = str_replace('];', $coreBundleString . "\n];", $str);
// write the entire string
file_put_contents('config/bundles.php', $str);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment