Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Nov 14, 2019. It is now read-only.

Commit be1f985

Browse filesBrowse files
Antoine MakdessiAntoine Makdessi
authored andcommitted
Symfony install review
1 parent ee9a334 commit be1f985
Copy full SHA for be1f985

File tree

Expand file treeCollapse file tree

6 files changed

+27
-25
lines changed
Filter options
Expand file treeCollapse file tree

6 files changed

+27
-25
lines changed

‎LICENSE

Copy file name to clipboardExpand all lines: LICENSE
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2014-2015 Fabien Potencier
1+
Copyright (c) 2014-2016 Fabien Potencier
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

‎README.md

Copy file name to clipboardExpand all lines: README.md
+16-4Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ automatically select the most recent version available for the given branch:
7777

7878
```bash
7979
# Linux, Mac OS X
80-
$ symfony new my_project 2.3
80+
$ symfony new my_project 2.8
8181

8282
# Windows
83-
c:\> php symfony new my_project 2.3
83+
c:\> php symfony new my_project 2.8
8484
```
8585

8686
**4. Start a new project based on a specific Symfony version**
@@ -90,10 +90,22 @@ argument and the exact Symfony version as the second argument:
9090

9191
```bash
9292
# Linux, Mac OS X
93-
$ symfony new my_project 2.5.6
93+
$ symfony new my_project 2.8.1
9494

9595
# Windows
96-
c:\> php symfony new my_project 2.5.6
96+
c:\> php symfony new my_project 2.8.1
97+
```
98+
99+
**5. Start a new project based on the Symfony demo version (lts)**
100+
101+
Execute the `demo` command:
102+
103+
```bash
104+
# Linux, Mac OS X
105+
$ symfony demo
106+
107+
# Windows
108+
c:\> php symfony demo
97109
```
98110

99111
Updating the installer

‎src/Symfony/Installer/AboutCommand.php

Copy file name to clipboardExpand all lines: src/Symfony/Installer/AboutCommand.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ protected function execute(InputInterface $input, OutputInterface $output)
6060
6161
Create a project based on a <info>specific Symfony branch</info>:
6262
63-
<comment>%3\$s new blog 2.3</comment>
63+
<comment>%3\$s new blog 2.8</comment> or <comment>%3\$s new blog 3.0</comment>
6464
6565
Create a project based on a <info>specific Symfony version</info>:
6666
67-
<comment>%3\$s new blog 2.5.6</comment>
67+
<comment>%3\$s new blog 2.8.1</comment> or <comment>%3\$s new blog 3.0.1</comment>
6868
6969
Create a <info>demo application</info> to learn how a Symfony application works:
7070

‎src/Symfony/Installer/DownloadCommand.php

Copy file name to clipboardExpand all lines: src/Symfony/Installer/DownloadCommand.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ protected function generateRandomSecret()
425425

426426
/**
427427
* Returns the executed command with all its arguments
428-
* (e.g. "symfony new blog 2.3.6").
428+
* (e.g. "symfony new blog 2.8.1").
429429
*
430430
* @return string
431431
*/

‎src/Symfony/Installer/NewCommand.php

Copy file name to clipboardExpand all lines: src/Symfony/Installer/NewCommand.php
+6-16Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,17 @@ protected function execute(InputInterface $input, OutputInterface $output)
8383

8484
/**
8585
* Checks whether the given Symfony version is installable by the installer.
86+
* (see http://symfony.com/roadmap)
8687
* Due to the changes introduced in the Icu/Intl components
8788
* (see http://symfony.com/blog/new-in-symfony-2-6-farewell-to-icu-component)
8889
* not all the previous Symfony versions are installable by the installer.
8990
*
9091
* The rules to decide if the version is installable are as follows:
9192
*
92-
* - 2.0, 2.1, 2.2 and 2.4 cannot be installed because they are unmaintained.
93+
* - 2.0, 2.1, 2.2, 2.4, 2.5 and 2.6 cannot be installed because they are unmaintained.
9394
* - 2.3 can be installed starting from version 2.3.21 (inclusive)
94-
* - 2.5 can be installed starting from version 2.5.6 (inclusive)
95-
* - 2.6, 2.7, 2.8 and 2.9 can be installed regardless the version.
95+
* - 2.7 and 2.8 can be installed regardless the version.
96+
* - 3.0 can be installed regardless the version.
9697
*
9798
* @return NewCommand
9899
*
@@ -133,8 +134,8 @@ protected function checkSymfonyVersionIsInstallable()
133134
}
134135
}
135136

136-
// 2.0, 2.1, 2.2 and 2.4 cannot be installed because they are unmaintained
137-
if (preg_match('/^2\.[0124]\.\d{1,2}$/', $this->version)) {
137+
// 2.0, 2.1, 2.2, 2.4, 2.5 and 2.6 cannot be installed because they are unmaintained
138+
if (preg_match('/^2\.[012456]\.\d{1,2}$/', $this->version)) {
138139
throw new \RuntimeException(sprintf(
139140
"The selected version (%s) cannot be installed because it belongs\n".
140141
"to an unmaintained Symfony branch which is not compatible with this installer.\n".
@@ -155,17 +156,6 @@ protected function checkSymfonyVersionIsInstallable()
155156
));
156157
}
157158

158-
// 2.5 can be installed starting from version 2.5.6 (inclusive)
159-
if (preg_match('/^2\.5\.\d{1,2}$/', $this->version) && version_compare($this->version, '2.5.6', '<')) {
160-
throw new \RuntimeException(sprintf(
161-
"The selected version (%s) cannot be installed because this installer\n".
162-
"is compatible with Symfony 2.5 versions starting from 2.5.6.\n".
163-
"To solve this issue install Symfony manually executing the following command:\n\n".
164-
'composer create-project symfony/framework-standard-edition %s %s',
165-
$this->version, $this->projectDir, $this->version
166-
));
167-
}
168-
169159
// "-dev" versions are not supported because Symfony doesn't provide packages for them
170160
if (preg_match('/^.*\-dev$/i', $this->version)) {
171161
throw new \RuntimeException(sprintf(

‎src/Symfony/Installer/SelfUpdateCommand.php

Copy file name to clipboardExpand all lines: src/Symfony/Installer/SelfUpdateCommand.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ protected function configure()
5757
$this
5858
->setName('self-update')
5959
->setAliases(array('selfupdate'))
60-
->setDescription('Update the installer to the latest version.')
60+
->setDescription('Update the Symfony Installer to the latest version.')
6161
->setHelp('The <info>%command.name%</info> command updates the installer to the latest available version.')
6262
;
6363
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.