Skip to content

Commit

Permalink
rename Sylius{Cache|Kernel} to App{Cache|Kernel}
Browse files Browse the repository at this point in the history
  • Loading branch information
John Robeson committed Jun 12, 2013
1 parent 4988cae commit a0a878c
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions app/SyliusCache.php → app/AppCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
* file that was distributed with this source code.
*/

require_once __DIR__.'/SyliusKernel.php';
require_once __DIR__.'/AppKernel.php';

use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache;

class SyliusCache extends HttpCache
class AppCache extends HttpCache
{
}
2 changes: 1 addition & 1 deletion app/SyliusKernel.php → app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author Paweł Jędrzejewski <[email protected]>
*/
class SyliusKernel extends Kernel
class AppKernel extends Kernel
{
/**
* {@inheritdoc}
Expand Down
4 changes: 2 additions & 2 deletions app/console
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
set_time_limit(0);

require_once __DIR__.'/bootstrap.php.cache';
require_once __DIR__.'/SyliusKernel.php';
require_once __DIR__.'/AppKernel.php';

use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Input\ArgvInput;
Expand All @@ -22,7 +22,7 @@ $input = new ArgvInput();
$env = $input->getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev');
$debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(array('--no-debug', '')) && $env !== 'live';

$kernel = new SyliusKernel($env, $debug);
$kernel = new AppKernel($env, $debug);

$application = new Application($kernel);
$application->run($input);
4 changes: 2 additions & 2 deletions behat.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ default:
selenium2: ~
Behat\Symfony2Extension\Extension:
kernel:
path: app/SyliusKernel.php
class: SyliusKernel
path: app/AppKernel.php
class: AppKernel
mink_driver: true

frontend:
Expand Down
8 changes: 4 additions & 4 deletions web/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
//$loader = new ApcClassLoader('sylius', $loader);
//$loader->register(true);

require_once __DIR__.'/../app/SyliusKernel.php';
//require_once __DIR__.'/../app/SyliusCache.php';
require_once __DIR__.'/../app/AppKernel.php';
//require_once __DIR__.'/../app/AppCache.php';

$kernel = new SyliusKernel('prod', false);
//$kernel = new SyliusCache($kernel);
$kernel = new AppKernel('prod', false);
//$kernel = new AppCache($kernel);

$request = Request::createFromGlobals();

Expand Down
4 changes: 2 additions & 2 deletions web/app_dev.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
}

require_once __DIR__.'/../app/bootstrap.php.cache';
require_once __DIR__.'/../app/SyliusKernel.php';
require_once __DIR__.'/../app/AppKernel.php';

// Initialize kernel and run the application.
$kernel = new SyliusKernel('dev', true);
$kernel = new AppKernel('dev', true);
$request = Request::createFromGlobals();

Request::enableHttpMethodParameterOverride();
Expand Down
4 changes: 2 additions & 2 deletions web/app_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
$loader = require_once __DIR__.'/../app/bootstrap.php.cache';

// Require kernel.
require_once __DIR__.'/../app/SyliusKernel.php';
require_once __DIR__.'/../app/AppKernel.php';

// Initialize kernel and run the application.
$kernel = new SyliusKernel('test', true);
$kernel = new AppKernel('test', true);
$request = Request::createFromGlobals();

Request::enableHttpMethodParameterOverride();
Expand Down

0 comments on commit a0a878c

Please sign in to comment.