Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extracts the Dashboard routes #2075

Merged
merged 1 commit into from
Aug 22, 2016
Merged

Extracts the Dashboard routes #2075

merged 1 commit into from
Aug 22, 2016

Conversation

ConnorVG
Copy link
Contributor

Resolves #2033

@jbrooksuk jbrooksuk added this to the V2.4.0 milestone Aug 22, 2016
@jbrooksuk jbrooksuk self-assigned this Aug 22, 2016
@jbrooksuk
Copy link
Member

Thanks man! I'll check this later.

$this->app->make('CachetHQ\\Cachet\\Http\\Routes\\'.basename($file, '.php'))->map($router);
$path = app_path('Http/Routes');

foreach (glob("{$path}/*{,/*}.php", GLOB_BRACE) as $file) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably a better way to do this. I might just change it after merge.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I was unsure where to go on this. So I went trusty GLOB_BRACE for one/two depth routes. Would probably be nicer going finder but w/e.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'll probably make a small package to do this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

While you're at it. Make your analysis test trait a package 😁

Copy link
Contributor

Choose a reason for hiding this comment

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

It already is?

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

😱

@jbrooksuk jbrooksuk merged commit 935434a into cachethq:2.4 Aug 22, 2016
@ConnorVG ConnorVG deleted the routes-extraction branch August 22, 2016 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants