Skip to content

Commit

Permalink
[Foundation] reorganized files
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jun 25, 2010
1 parent 220f8ce commit 28c1fb2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
@@ -1,6 +1,6 @@
<?php

namespace Symfony\Foundation\Bundle;
namespace Symfony\Foundation\DependencyInjection;

use Symfony\Components\DependencyInjection\Loader\LoaderExtension;
use Symfony\Components\DependencyInjection\Loader\XmlFileLoader;
Expand Down
@@ -1,9 +1,10 @@
<?php

namespace Symfony\Foundation\Bundle;
namespace Symfony\Foundation;

use Symfony\Foundation\Bundle\Bundle;
use Symfony\Foundation\ClassCollectionLoader;
use Symfony\Foundation\DependencyInjection\KernelExtension;
use Symfony\Components\DependencyInjection\ContainerInterface;
use Symfony\Components\DependencyInjection\Loader\Loader;
use Symfony\Components\DependencyInjection\Loader\XmlFileLoader;
Expand Down
@@ -1,6 +1,6 @@
<?php

require_once __DIR__.'/UniversalClassLoader.php';
require_once __DIR__.'/../../UniversalClassLoader.php';

/*
* This file is part of the Symfony framework.
Expand All @@ -15,18 +15,19 @@
use Symfony\Foundation\ClassCollectionLoader;

$loader = new UniversalClassLoader();
$loader->registerNamespaces(array('Symfony' => __DIR__.'/../..'));
$loader->registerNamespaces(array('Symfony' => __DIR__.'/../../../..'));
$loader->register();

if (file_exists(__DIR__.'/bootstrap.php')) {
unlink(__DIR__.'/bootstrap.php');
if (file_exists(__DIR__.'/../../bootstrap.php')) {
unlink(__DIR__.'/../../bootstrap.php');
}

ClassCollectionLoader::load(array(
'Symfony\\Foundation\\Bundle\\Bundle',
'Symfony\\Foundation\\Bundle\\BundleInterface',
'Symfony\\Foundation\\Bundle\\KernelBundle',
'Symfony\\Foundation\\Bundle\\KernelExtension',
'Symfony\\Foundation\\KernelBundle',
'Symfony\\Foundation\\DependencyInjection\\KernelExtension',
'Symfony\\Foundation\\Debug\\ErrorHandler',
'Symfony\\Foundation\\ClassCollectionLoader',
'Symfony\\Foundation\\EventDispatcher',
), __DIR__, 'bootstrap', false);
), __DIR__.'/../..', 'bootstrap', false);
5 changes: 3 additions & 2 deletions src/Symfony/Foundation/bootstrap.php
Expand Up @@ -127,10 +127,11 @@ public function shutdown(ContainerInterface $container);
}


namespace Symfony\Foundation\Bundle;
namespace Symfony\Foundation;

use Symfony\Foundation\Bundle\Bundle;
use Symfony\Foundation\ClassCollectionLoader;
use Symfony\Foundation\DependencyInjection\KernelExtension;
use Symfony\Components\DependencyInjection\ContainerInterface;
use Symfony\Components\DependencyInjection\Loader\Loader;
use Symfony\Components\DependencyInjection\Loader\XmlFileLoader;
Expand Down Expand Up @@ -171,7 +172,7 @@ public function boot(ContainerInterface $container)
}


namespace Symfony\Foundation\Bundle;
namespace Symfony\Foundation\DependencyInjection;

use Symfony\Components\DependencyInjection\Loader\LoaderExtension;
use Symfony\Components\DependencyInjection\Loader\XmlFileLoader;
Expand Down

0 comments on commit 28c1fb2

Please sign in to comment.