Browse Source

Use https links to getcomposer.org everywhere

Christophe Coevoet 9 years ago
parent
commit
c66275004f

+ 1 - 1
src/Packagist/WebBundle/Controller/WebController.php

@@ -1172,7 +1172,7 @@ class WebController extends Controller
      */
     public function aboutComposerFallbackAction()
     {
-        return new RedirectResponse('http://getcomposer.org/', 301);
+        return new RedirectResponse('https://getcomposer.org/', 301);
     }
 
     private function createAddMaintainerForm($package)

+ 2 - 2
src/Packagist/WebBundle/Resources/views/About/about.html.twig

@@ -2,7 +2,7 @@
 
 {% block content %}
     <h2 class="title">What is Packagist?</h2>
-    <p>Packagist is the default Composer package repository. It lets you find packages and lets Composer know where to get the code from. You can use Composer to manage your project or libraries' dependencies - read more about it on the <a href="http://getcomposer.org/">Composer website</a>.</p>
+    <p>Packagist is the default Composer package repository. It lets you find packages and lets Composer know where to get the code from. You can use Composer to manage your project or libraries' dependencies - read more about it on the <a href="https://getcomposer.org/">Composer website</a>.</p>
     <p>You can find the packagist.org source on <a href="https://github.com/composer/packagist">GitHub</a>.</p>
 
     <section class="row">
@@ -50,7 +50,7 @@ acme/email</code></pre>
     "type": "library",
     "description": "Logging for PHP 5.3",
     "keywords": ["log","logging"],
-    "homepage": "http://github.com/Seldaek/monolog",
+    "homepage": "https://github.com/Seldaek/monolog",
     "license": "MIT",
     "authors": [
         {

+ 2 - 2
src/Packagist/WebBundle/Resources/views/Web/index.html.twig

@@ -17,8 +17,8 @@
 
             <h3>Install Composer In Your Project</h3>
             <p>Run this in your command line:</p>
-            <pre><code>curl -sS http://getcomposer.org/installer | php</code></pre>
-            <p>Or <a href="http://getcomposer.org/composer.phar">download composer.phar</a> into your project root.</p>
+            <pre><code>curl -sS https://getcomposer.org/installer | php</code></pre>
+            <p>Or <a href="https://getcomposer.org/composer.phar">download composer.phar</a> into your project root.</p>
 
             <h3>Install Dependencies</h3>
             <p>Execute this in your project root.</p>

+ 1 - 1
src/Packagist/WebBundle/Resources/views/Web/searchSection.html.twig

@@ -6,7 +6,7 @@
         <div class="row">
             <div class="col-sm-9 hidden-xs">
                 <img src="{{ asset('bundles/packagistweb/img/logo-small.png') }}" class="logo">
-                <p>Packagist is the main <a href="http://getcomposer.org/">Composer</a> repository. It aggregates public PHP packages installable with Composer.</p>
+                <p>Packagist is the main <a href="https://getcomposer.org/">Composer</a> repository. It aggregates public PHP packages installable with Composer.</p>
             </div>
         </div>
         {%- endif %}

+ 2 - 2
src/Packagist/WebBundle/Resources/views/Web/submitPackage.html.twig

@@ -20,8 +20,8 @@
 
     <div class="col-md-6">
         <p>Please make sure you have read the package <a href="{{ path('about') }}#naming-your-package">naming conventions</a> before submitting your package. The authoritative name of your package will be taken from the composer.json file inside the master branch or trunk of your repository, and it can not be changed after that.</p>
-        <p><strong>Do not submit forks of existing packages.</strong> If you need to test changes to a package that you forked to patch, use <a href="http://getcomposer.org/doc/05-repositories.md#vcs">VCS Repositories</a> instead. If however it is a real long-term fork you intend on maintaining feel free to submit it.</p>
-        <p>If you need help or if you have any questions please get in touch with the Composer <a href="http://getcomposer.org/doc/06-community.md">community</a>.</p>
+        <p><strong>Do not submit forks of existing packages.</strong> If you need to test changes to a package that you forked to patch, use <a href="https://getcomposer.org/doc/05-repositories.md#vcs">VCS Repositories</a> instead. If however it is a real long-term fork you intend on maintaining feel free to submit it.</p>
+        <p>If you need help or if you have any questions please get in touch with the Composer <a href="https://getcomposer.org/doc/06-community.md">community</a>.</p>
     </div>
 </section>
 {% endblock %}