-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from mateu-aguilo-bosch/easier-autoload-inclusion
Easier autoload inclusion
- Loading branch information
Showing
6 changed files
with
81 additions
and
17 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
use Drupal\Composer\ClassLoader\AutoloaderBootstrap; | ||
|
||
// Load Composer's autoloader. | ||
$loader = require __DIR__ . '/../../autoload.php'; | ||
|
||
$autoloader_init = new AutoloaderBootstrap($loader); | ||
$autoloader_init->register(); |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: e0ipso | ||
* Date: 03/07/15 | ||
* Time: 13:00 | ||
*/ | ||
|
||
namespace Drupal\Composer\ClassLoader; | ||
|
||
|
||
interface AutoloaderBootstrapInterface { | ||
|
||
/** | ||
* Register the autoloader if it is not registered. | ||
*/ | ||
public function register(); | ||
|
||
|
||
/** | ||
* Checks if the autoloader has been added. | ||
* | ||
* @return bool | ||
*/ | ||
public function checkLoadedAutoloader(); | ||
|
||
/** | ||
* Gets the configuration for the drupal loader from the Composer loader. | ||
* | ||
* @return array | ||
* The configuration array for the drupal loader. | ||
*/ | ||
public function getConfig(); | ||
/** | ||
* Gets the class loader. | ||
* | ||
* @return \Composer\Autoload\ClassLoader | ||
* The loader. | ||
*/ | ||
public function getClassLoader(); | ||
|
||
} |
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