@@ -22,8 +22,7 @@ class Laravel5BackupManagerServiceProvider extends ServiceProvider {
2222 * @return void
2323 */
2424 public function boot () {
25- $ configPath = __DIR__ . '/../../../config ' ;
26- $ this ->publishes ([$ configPath . "/backup-manager.php " => config_path ('backup-manager.php ' )], 'backup-manager ' );
25+ $ this ->publishes ([config_path () . "/backup-manager.php " => config_path ('backup-manager.php ' )], 'backup-manager ' );
2726 }
2827
2928 /**
@@ -33,8 +32,7 @@ public function boot() {
3332 */
3433 public function register () {
3534
36- $ configPath = __DIR__ . '/../../../config ' ;
37- $ this ->mergeConfigFrom ($ configPath . '/backup-manager.php ' , 'backup-manager ' );
35+ $ this ->mergeConfigFrom (config_path () . '/backup-manager.php ' , 'backup-manager ' );
3836 $ this ->registerFilesystemProvider ();
3937 $ this ->registerDatabaseProvider ();
4038 $ this ->registerCompressorProvider ();
@@ -106,9 +104,9 @@ private function registerShellProcessor() {
106104 */
107105 private function registerArtisanCommands () {
108106 $ this ->commands ([
109- 'BackupManager\Integrations\ Laravel\DbBackupCommand ' ,
110- 'BackupManager\Integrations\ Laravel\DbRestoreCommand ' ,
111- 'BackupManager\Integrations\ Laravel\DbListCommand ' ,
107+ 'BackupManager\Laravel\DbBackupCommand ' ,
108+ 'BackupManager\Laravel\DbRestoreCommand ' ,
109+ 'BackupManager\Laravel\DbListCommand ' ,
112110 ]);
113111 }
114112
0 commit comments