Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

undef(resolve) adding Hoa namespace to resolve to avoid conflict #22

Merged
merged 2 commits into from
Aug 30, 2017
Merged

undef(resolve) adding Hoa namespace to resolve to avoid conflict #22

merged 2 commits into from
Aug 30, 2017

Conversation

Grummfy
Copy link
Member

@Grummfy Grummfy commented Aug 4, 2017

related to #18
once we have discuted about it, I will get back on other repository depending on this function.

note with php 5.6+ we can use use function \Hoa\resolve in the import part

@vonglasow
Copy link
Member

Can you complete also the README please ?

Copy link
Member

@Hywan Hywan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it's cool with this modification. Thoughts?

Wrapper.php Outdated
@@ -583,7 +583,7 @@ public function getStreamName()

}

namespace
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this.

@@ -902,7 +902,7 @@ protected function openDirectory(SUT $wrapper, array $children = [])
$wrapper->dir_opendir('hoa://Test/Vfs/Bar?type=directory', 0);

foreach ($children as $child) {
resolve('hoa://Test/Vfs/Bar/' . $child . '?type=file');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hoa\Protocol\Protocol::getInstance()->resolve(…) is better.

@@ -148,7 +148,7 @@ public function main()
' is equivalent to:', "\n";
}

$resolved = resolve($path, $exists, $unfold);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hoa\Protocol\Protocol::getInstance()->resolve(…) is better.

@Grummfy
Copy link
Member Author

Grummfy commented Aug 7, 2017

here it is

@Hywan
Copy link
Member

Hywan commented Aug 8, 2017

We have to coordinate the release of this library with the drop of PHP 5.x because it introduces a BC break. Do you agree?

@Grummfy
Copy link
Member Author

Grummfy commented Aug 8, 2017

Yes, because less bc break is good.
No, because it break my laravel app ;)

But, I can wait. What do we need for breaking php compatibility?
Did I update other library to remove it?

@Hywan
Copy link
Member

Hywan commented Aug 8, 2017

We must implement Hoa\Option, and then use it for all new libraries. With Hoa\Option, we will introduce BC, and thus we will upgrade to PHP 7. I can focus my work on Hoa\Option, then use it in Hoa\Consistency, do a new major release, and use it in Hoa\Protocol with a new major release. Thoughts?

@Grummfy
Copy link
Member Author

Grummfy commented Aug 8, 2017

OK.

@Bhoat Bhoat merged commit d7d4965 into hoaproject:master Aug 30, 2017
@drwxmrrs
Copy link

Hey all!

We've just implemented the Hoa\Ruler package in Laravel and this is causing some serious headaches for us as we have other packages using Laravel's resolve function internally.

Is there any update on when this will be released? Is it safe to just use dev-master for the protocol package for now?

@Grummfy Grummfy deleted the central-61 branch March 20, 2018 06:19
@jaroslavas
Copy link

Hey guys, when will you release this? Your libraries are still unusable with Laravel because of this resolve function!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

6 participants