Skip to content

[FrameworkBundle][Server Command] add address port number option. #14383

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

Merged
merged 1 commit into from
Apr 18, 2015

Conversation

aitboudad
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets ~
License MIT
Doc PR ~

This allow running server without repeating 127.0.0.1 each time, in the most of case we only change the port number.

  • Before
app/console server:start 127.0.0.1:8080
  • After
app/console server:start -p 8080

@dosten
Copy link
Contributor

dosten commented Apr 17, 2015

👍

$address = $input->getArgument('address');
if (false === strpos($address, ':')) {
$address = $address.':'.$input->getOption('port');
}
Copy link
Member

Choose a reason for hiding this comment

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

I think we should rather pass the built address here instead of doing this all again.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@aitboudad aitboudad force-pushed the framework_cmd_server branch from f4126bf to 83dbaae Compare April 17, 2015 21:08

$address = $input->getArgument('address');
Copy link
Member

Choose a reason for hiding this comment

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

Can you revert this change (i.e. moving the blank line down again)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

reverted

@aitboudad aitboudad force-pushed the framework_cmd_server branch from 83dbaae to fbe1a43 Compare April 17, 2015 21:24
@xabbuh
Copy link
Member

xabbuh commented Apr 17, 2015

👍

1 similar comment
@stof
Copy link
Member

stof commented Apr 18, 2015

👍

@fabpot
Copy link
Member

fabpot commented Apr 18, 2015

Thank you @aitboudad.

@fabpot fabpot merged commit fbe1a43 into symfony:2.8 Apr 18, 2015
fabpot added a commit that referenced this pull request Apr 18, 2015
…ber option. (aitboudad)

This PR was merged into the 2.8 branch.

Discussion
----------

[FrameworkBundle][Server Command] add address port number option.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | ~
| License       | MIT
| Doc PR        | ~

This allow running server without repeating `127.0.0.1` each time, in the most of case we only change the port number.

* Before
```
app/console server:start 127.0.0.1:8080
```

* After
```
app/console server:start -p 8080
```

Commits
-------

fbe1a43 [FrameworkBundle][Server Command] add address port number option.
@aitboudad aitboudad deleted the framework_cmd_server branch April 18, 2015 10:25
@fabpot fabpot mentioned this pull request Nov 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants