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

WIP: Kickoff #1

Merged
merged 6 commits into from
Jan 9, 2018
Merged

WIP: Kickoff #1

merged 6 commits into from
Jan 9, 2018

Conversation

kralmichal
Copy link
Contributor

Hi,

this PR is just kickoff for making this package ready. Can we start working on this? I just need to know what needs to be done and I will update this PR.

Thanks

Copy link
Member

@f3l1x f3l1x left a comment

Choose a reason for hiding this comment

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

Some tiny things ;-)

composer.json Outdated
@@ -0,0 +1,44 @@
{
"name": "apitte/console",
"minimum-stability": "dev",
Copy link
Member

Choose a reason for hiding this comment

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

Please reformat composer.json according to the others. (https://github.com/apitte/openapi/blob/master/composer.json)

Copy link
Member

Choose a reason for hiding this comment

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

Remove composer.lock.

composer.json Outdated
"prefer-stable": true,
"require": {
"php": ">= 5.6",
"apitte/core": "^0.1.0@dev",
Copy link
Member

Choose a reason for hiding this comment

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

Depend on stable version.

use Symfony\Component\Console\Style\SymfonyStyle;

/**
* Class RouteDumpCommand
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 phpdoc - it's useles, the name is already in filename.

const TABLE_HEADER = ['Method', 'Path', 'Handler', 'Parameters'];

/**
* @var \Apitte\Core\Schema\Schema
Copy link
Member

Choose a reason for hiding this comment

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

Please use single link phpdoc and import namespace for Schema;

/**
* @return void
*/
protected function configure()
Copy link
Member

Choose a reason for hiding this comment

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

The first method should be construct.

}

/**
* RouteDumpCommand constructor.
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 phpdoc except the $schema.

* @param \Symfony\Component\Console\Output\OutputInterface $output
* @return void
*/
public function printEndpointsTable(OutputInterface $output)
Copy link
Member

Choose a reason for hiding this comment

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

Move this to execute method please.

@f3l1x f3l1x merged commit 48501f0 into contributte:master Jan 9, 2018
@f3l1x
Copy link
Member

f3l1x commented Jan 9, 2018

Thank you.

@f3l1x f3l1x added this to the v0.1 milestone Jan 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants