Skip to content
This repository was archived by the owner on Jul 16, 2023. It is now read-only.

Commit 670a672

Browse files
committed
Reorganizing Ardent::configureAsExternal arguments
1 parent 371eba2 commit 670a672

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LaravelBook/Ardent/Ardent.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ public function __construct( array $attributes = array() ) {
130130
/**
131131
* Configures Ardent to be used outside of Laravel - correctly setting Eloquent and Validation modules.
132132
*
133+
* @param string $language A language string as used by {@link \Symfony\Component\Translation\Translator}
133134
* @param array $connection Connection info used by {@link \Illuminate\Database\Capsule\Manager::addConnection}.
134135
* Should contain driver, host, port, database, username, password, charset and collation.
135-
* @param string $language A language string as used by {@link \Symfony\Component\Translation\Translator}
136136
*/
137-
public static function configureAsExternal( array $connection, $language ) {
137+
public static function configureAsExternal( $language, array $connection ) {
138138
$db = new DatabaseCapsule;
139139
$db->addConnection( $connection );
140140
$db->setEventDispatcher( new Dispatcher( new Container ) );

0 commit comments

Comments
 (0)