-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/sulu-upgrade-2-4-2' into 'master'
Upgrade demo to sulu 2.4.2 See merge request webapps/sulu-demo!128
- Loading branch information
Showing
58 changed files
with
848 additions
and
730 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
require __DIR__.'/../vendor/autoload.php'; | ||
|
||
$suluContext = \Sulu\Component\HttpKernel\SuluKernel::CONTEXT_ADMIN; | ||
include __DIR__ . DIRECTORY_SEPARATOR. 'console.php'; | ||
return include __DIR__ . DIRECTORY_SEPARATOR. 'console.php'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,4 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
use Sulu\Component\HttpKernel\SuluKernel; | ||
use Symfony\Component\Console\Input\ArgvInput; | ||
use Symfony\Component\Console\Output\ConsoleOutput; | ||
use Symfony\Component\Console\Style\SymfonyStyle; | ||
|
||
require __DIR__.'/../vendor/autoload.php'; | ||
|
||
$input = new ArgvInput(); | ||
$output = new ConsoleOutput(); | ||
$io = new SymfonyStyle($input, $output); | ||
|
||
$ansi = $input->getParameterOption(['--ansi']); | ||
|
||
if (!$ansi) { | ||
$io->warning('This command will be executed in the "admin" context. For the "website" context, run ./bin/websiteconsole'); | ||
} | ||
|
||
$suluContext = SuluKernel::CONTEXT_ADMIN; | ||
include __DIR__ . DIRECTORY_SEPARATOR. 'console.php'; | ||
return include __DIR__ . DIRECTORY_SEPARATOR. 'console.php'; |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
if (!ini_get('date.timezone')) { | ||
ini_set('date.timezone', 'UTC'); | ||
if (!\ini_get('date.timezone')) { | ||
\ini_set('date.timezone', 'UTC'); | ||
} | ||
|
||
if (is_file(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) { | ||
define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php'); | ||
if (\is_file(\dirname(__DIR__) . '/vendor/phpunit/phpunit/phpunit')) { | ||
\define('PHPUNIT_COMPOSER_INSTALL', \dirname(__DIR__) . '/vendor/autoload.php'); | ||
require PHPUNIT_COMPOSER_INSTALL; | ||
PHPUnit\TextUI\Command::main(); | ||
} else { | ||
if (!is_file(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) { | ||
if (!\is_file(\dirname(__DIR__) . '/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) { | ||
echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n"; | ||
exit(1); | ||
} | ||
|
||
require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php'; | ||
require \dirname(__DIR__) . '/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php'; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
require __DIR__.'/../vendor/autoload.php'; | ||
// we are not allowed to load the autoloader here to get constant because symfony/runtime does else not work correctly | ||
$suluContext = 'website'; | ||
|
||
$suluContext = \Sulu\Component\HttpKernel\SuluKernel::CONTEXT_WEBSITE; | ||
include __DIR__ . DIRECTORY_SEPARATOR. 'console.php'; | ||
return include __DIR__ . DIRECTORY_SEPARATOR. 'console.php'; |
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
Oops, something went wrong.