File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,6 @@ class RepositoryServiceProvider extends ServiceProvider
2626 */
2727 public function register ()
2828 {
29- // check ensure main folder services
30- $ this ->app ->make (Filesystem::class)->ensureDirectoryExists (config ("easy-repository.service_directory " ));
31- // check ensure main folder repository
32- $ this ->app ->make (Filesystem::class)->ensureDirectoryExists (config ("easy-repository.repository_directory " ));
33-
3429 $ this ->files = $ this ->app ->make (Filesystem::class);
3530 if ($ this ->isConfigPublished ()) {
3631 $ this ->bindAllRepositories ();
@@ -125,6 +120,7 @@ public function getRepository()
125120 */
126121 private function getRepositoryPath ()
127122 {
123+ $ this ->app ->make (Filesystem::class)->ensureDirectoryExists (config ("easy-repository.repository_directory " ));
128124 $ dirs = File::directories ($ this ->app ->basePath () .
129125 "/ " . config ("easy-repository.repository_directory " ));
130126 $ folders = [];
@@ -193,6 +189,7 @@ private function getRepositoryFiles()
193189 * @return array
194190 */
195191 private function getServicePath () {
192+ $ this ->app ->make (Filesystem::class)->ensureDirectoryExists (config ("easy-repository.service_directory " ));
196193 $ root = $ this ->app ->basePath () .
197194 "/ " . config ("easy-repository.service_directory " );
198195
You can’t perform that action at this time.
0 commit comments