Skip to content

Commit bb090ae

Browse files
committed
cleanup.
1 parent 9f43273 commit bb090ae

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

drufony.module

+6-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ function drufony_boot() {
1212
Drufony::boot();
1313
}
1414

15-
1615
/**
1716
* Implements hook_flush_caches().
1817
*/
@@ -44,3 +43,9 @@ function drufony_stream_wrappers() {
4443
),
4544
);
4645
}
46+
47+
if (!function_exists('composer_manager_register_autoloader')) {
48+
function composer_manager_register_autoloader() {
49+
require_once DRUPAL_ROOT . '/../vendor/autoload.php';
50+
}
51+
}

drufony.services.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ services:
77

88
class_loader:
99
class: Composer\Autoload\Classloader
10-
factory: [ '@=constant("DRUFONY_COMPOSER_AUTOLOAD_CLASS")', getLoader ]
10+
factory: [ '@=constant("COMPOSER_AUTOLOAD_CLASS")', getLoader ]

0 commit comments

Comments
 (0)