Skip to content

Commit 1a8fc66

Browse files
committed
Merge branch 'drupal' of github.com:winmillwill/packagist into drupal
Conflicts: composer.lock src/Packagist/WebBundle/Package/BackgroundUpserter.php
2 parents a86e135 + 9e415d5 commit 1a8fc66

40 files changed

+1961
-783
lines changed

app/AppKernel.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ public function registerBundles()
2323
new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(),
2424
new Nelmio\SolariumBundle\NelmioSolariumBundle(),
2525
new Nelmio\SecurityBundle\NelmioSecurityBundle(),
26-
new OldSound\RabbitMqBundle\OldSoundRabbitMqBundle()
26+
new OldSound\RabbitMqBundle\OldSoundRabbitMqBundle(),
27+
new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle()
2728
);
2829

2930
if (in_array($this->getEnvironment(), array('dev', 'test'))) {

app/Resources/FOSUserBundle/views/Profile/show.html.twig

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<p><a href="#" onclick="this.parentNode.innerHTML = '<pre><code>{{ app.user.apiToken }}</code></pre>'; return false;">Show API Token</a></p>
1919
<p>You can use your API token to interact with the Packagist API.</p>
2020
<h1>GitHub Service Hook</h1>
21-
<p>Enabling the Packagist service hook ensures that your package will always be updated instantly when you push to GitHub. To do so you can go to your GitHub repository, click the "Settings" button, then "Service Hooks". Pick "Packagist" in the list, and add your API token (see above), plus your Packagist username if it is not the same as on GitHub. Check the "Active" box and submit the form.</p>
21+
<p>Enabling the Packagist service hook ensures that your package will always be updated instantly when you push to GitHub. To do so you can go to your GitHub repository, click the "Settings" button, then "Webhooks &amp; Services". Add a "Packagist" service, and configure it with your API token (see above), plus your Packagist username. Check the "Active" box and submit the form. You can then hit the "Test Service" button to trigger it and check if Packagist removes the warning about the package not being auto-updated.</p>
2222
<h1>Bitbucket POST Service</h1>
2323
<p>To enable the Bitbucket service hook, go to your BitBucket repository, open the "Admin" tab and select "Services" in the menu. Pick "POST" in the list and add it to your repository. Afterwards, you have to enter the Packagist endpoint, containing both your username and API token (see above). Enter <code>https://packagist.org/api/bitbucket?username={{ app.user.username }}&amp;apiToken=&hellip;</code> for the service's URL. Save your changes and you're done.</p>
2424
{% endif %}

app/Resources/HWIOAuthBundle/views/Connect/login.html.twig

-5
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@
2020
<input type="password" id="password" name="_password" />
2121
</div>
2222

23-
<div>
24-
<input type="checkbox" id="remember_me" name="_remember_me" value="on" checked="checked" />
25-
<label for="remember_me">{{ 'security.login.remember_me'|trans({}, 'FOSUserBundle') }}</label>
26-
</div>
27-
2823
{% if packagist_host and packagist_host in app.request.headers.get('Referer') %}
2924
<input type="hidden" name="_target_path" value="{{ app.request.headers.get('Referer') }}" />
3025
{% endif %}

app/config/config.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
imports:
2+
- { resource: defaults.yml }
23
- { resource: parameters.yml }
34
- { resource: security.yml }
45

@@ -16,6 +17,8 @@ framework:
1617
session:
1718
name: packagist
1819
cookie_lifetime: 3600
20+
cookie_httponly: true
21+
save_path: %session_save_path%
1922
trusted_proxies: %trusted_proxies%
2023
trusted_hosts: %trusted_hosts%
2124
http_method_override: true

app/config/config_dev.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
imports:
22
- { resource: config.yml }
3-
- { resource: twig_dev.yml }
43

54
framework:
65
router: { resource: "%kernel.root_dir%/config/routing_dev.yml" }
@@ -20,5 +19,9 @@ monolog:
2019
type: firephp
2120
level: info
2221

22+
hwi_oauth:
23+
http_client:
24+
verify_peer: false
25+
2326
#assetic:
2427
# use_controller: true

app/config/defaults.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
parameters:
2+
packagist_host: ~
3+
packagist_metadata_dir: "%kernel.cache_dir%/composer-packages-build"
4+
session_save_path: %kernel.cache_dir%/sessions

app/config/parameters.yml.dist

+3-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ parameters:
2323
google_analytics:
2424
ga_key:
2525

26-
github.client_id: foo
27-
github.client_secret: bar
26+
# set those to values obtained by creating an application at https://github.com/settings/applications
27+
github.client_id:
28+
github.client_secret:
2829

2930
# -- performance features --
3031
# set both to apc to optimize things if it is available

app/config/security.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ security:
2222
key: %remember_me.secret%
2323
user_providers: packagist
2424
name: pauth
25-
remember_me_parameter: _remember_me
25+
always_remember_me: true
2626
lifetime: 31104000 # 1y
2727
logout: true
2828
anonymous: true

app/config/twig_dev.yml

-5
This file was deleted.

composer.json

+11-10
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
"require": {
2828
"php": ">=5.3.3",
2929
"symfony/symfony": "2.3.*",
30+
"doctrine/migrations": "~1.0.0@dev",
31+
"doctrine/doctrine-migrations-bundle": "~2.1.0@dev",
3032
"doctrine/orm": "~2.3",
3133
"doctrine/doctrine-bundle": "1.2.*",
3234
"twig/extensions": "~1.0",
@@ -41,22 +43,21 @@
4143

4244
"composer/composer": "1.0.x-dev",
4345
"friendsofsymfony/user-bundle": "1.*",
44-
"hwi/oauth-bundle": "dev-master",
45-
"nelmio/solarium-bundle": "1.*",
46-
"nelmio/security-bundle": "1.*",
46+
"hwi/oauth-bundle": "~0.4@dev",
47+
"nelmio/solarium-bundle": "~1.0",
48+
"nelmio/security-bundle": "~1.0",
4749
"predis/predis": "0.8.*",
48-
"snc/redis-bundle": "dev-master",
49-
"white-october/pagerfanta-bundle": "1.0.*@dev",
50+
"snc/redis-bundle": "~1.1@dev",
51+
"white-october/pagerfanta-bundle": "~1.0",
5052
"zendframework/zend-feed": "2.0.*",
5153
"zendframework/zend-servicemanager": "2.0.*",
5254
"zendframework/zend-uri": "2.0.*",
5355
"zendframework/zend-version": "2.0.*",
54-
55-
"kriswallsmith/assetic": "@dev",
56-
"pagerfanta/pagerfanta": "@dev",
57-
"guzzle/http": "*",
56+
"guzzle/guzzle": "~3.7",
5857
"drupal/parse-composer": "dev-master@dev",
59-
"oldsound/rabbitmq-bundle": "1.4.*"
58+
"oldsound/rabbitmq-bundle": "1.4.*",
59+
"kriswallsmith/assetic": "~1.2@alpha",
60+
"pagerfanta/pagerfanta": "~1.0"
6061
},
6162
"scripts": {
6263
"post-install-cmd": [

0 commit comments

Comments
 (0)