Permalink
Browse files

switched to composer for dependency management

  • Loading branch information...
1 parent 6fec6ef commit 1cda47ebf1b5afaead6ce597b0935e76afe5d80f @fabpot fabpot committed May 15, 2012
View
@@ -1 +1,3 @@
phpunit.xml
+vendor
+
View
@@ -1,21 +0,0 @@
-[submodule "vendor/Symfony/Component/BrowserKit"]
- path = vendor/Symfony/Component/BrowserKit
- url = https://github.com/symfony/BrowserKit
-[submodule "vendor/Symfony/Component/DomCrawler"]
- path = vendor/Symfony/Component/DomCrawler
- url = https://github.com/symfony/DomCrawler
-[submodule "vendor/Symfony/Component/CssSelector"]
- path = vendor/Symfony/Component/CssSelector
- url = https://github.com/symfony/CssSelector
-[submodule "vendor/Symfony/Component/Process"]
- path = vendor/Symfony/Component/Process
- url = https://github.com/symfony/Process
-[submodule "vendor/Symfony/Component/ClassLoader"]
- path = vendor/Symfony/Component/ClassLoader
- url = https://github.com/symfony/ClassLoader
-[submodule "vendor/Symfony/Component/Finder"]
- path = vendor/Symfony/Component/Finder
- url = https://github.com/symfony/Finder
-[submodule "vendor/Guzzle"]
- path = vendor/Guzzle
- url = git://github.com/guzzle/guzzle.git
View
@@ -1,15 +0,0 @@
-<?php
-
-if (false === class_exists('Symfony\Component\ClassLoader\UniversalClassLoader', false)) {
- require_once __DIR__.'/vendor/Symfony/Component/ClassLoader/UniversalClassLoader.php';
-}
-
-use Symfony\Component\ClassLoader\UniversalClassLoader;
-
-$loader = new UniversalClassLoader();
-$loader->registerNamespaces(array(
- 'Symfony' => __DIR__.'/vendor',
- 'Guzzle' => __DIR__.'/vendor/Guzzle/src',
- 'Goutte' => __DIR__.'/src',
-));
-$loader->register();
View
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
-require_once __DIR__.'/autoload.php';
+require_once __DIR__.'/vendor/autoload.php';
use Goutte\Compiler;
View
@@ -0,0 +1,28 @@
+{
+ "name": "fabpot/goutte",
+ "type": "application",
+ "description": "A simple PHP Web Scraper",
+ "keywords": ["scraper"],
+ "homepage": "https://github.com/fabpot/Goutte",
+ "version": "1.0.0",
+ "license": "MIT",
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "fabien@symfony.com"
+ }
+ ],
+ "require": {
+ "php": ">=5.3.0",
+ "symfony/browser-kit": "2.1.*",
+ "symfony/css-selector": "2.1.*",
+ "symfony/dom-crawler": "2.1.*",
+ "symfony/finder": "2.1.*",
+ "symfony/process": "2.1.*",
+ "guzzle/guzzle": "v2.5.0"
+ },
+ "autoload": {
+ "psr-0": { "Goutte": "src" }
+ },
+ "bin": ["goutte.phar"]
+}
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
Binary file not shown.
View
@@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
- bootstrap="./tests/bootstrap.php">
+ bootstrap="./vendor/autoload.php">
<testsuites>
<testsuite name="Goutte Test Suite">
<directory>./tests/Goutte/Tests</directory>
View
@@ -54,7 +54,7 @@ public function compile($pharFile = 'goutte.phar')
protected function getCliStub()
{
- return "<?php ".$this->getLicense()." require_once __DIR__.'/autoload.php'; __HALT_COMPILER();";
+ return "<?php ".$this->getLicense()." require_once __DIR__.'/vendor/autoload.php'; __HALT_COMPILER();";
}
protected function getWebStub()
@@ -79,17 +79,18 @@ protected function getFiles()
{
$files = array(
'LICENSE',
- 'autoload.php',
- 'vendor/Symfony/Component/ClassLoader/UniversalClassLoader.php'
+ 'vendor/autoload.php',
);
$dirs = array(
+ 'vendor/composer',
'src/Goutte',
- 'vendor/Symfony/Component/BrowserKit',
- 'vendor/Symfony/Component/DomCrawler',
- 'vendor/Symfony/Component/CssSelector',
- 'vendor/Symfony/Component/Process',
- 'vendor/Guzzle/src/Guzzle'
+ 'vendor/symfony/browser-kit',
+ 'vendor/symfony/dom-crawler',
+ 'vendor/symfony/css-selector',
+ 'vendor/symfony/process',
+ 'vendor/symfony/event-dispatcher',
+ 'vendor/guzzle/guzzle/src/Guzzle'
);
$finder = new Finder();
@@ -16,7 +16,7 @@
use Guzzle\Http\Message\Response as GuzzleResponse;
use Guzzle\Service\Client as GuzzleClient;
-use Guzzle\Service\Plugin\MockPlugin;
+use Guzzle\Http\Plugin\MockPlugin;
use Guzzle\Http\Plugin\HistoryPlugin;
use Guzzle\Http\Message\Response;
View
@@ -1,6 +0,0 @@
-<?php
-
-error_reporting(E_ALL | E_STRICT);
-
-require __DIR__.'/../autoload.php';
-require_once 'PHPUnit/TextUI/TestRunner.php';
View
@@ -1,14 +0,0 @@
-#!/bin/sh
-
-COMPONENTS='BrowserKit ClassLoader CssSelector DomCrawler Finder Process'
-
-cd vendor/Symfony/Component
-for COMPONENT in $COMPONENTS
-do
- cd $COMPONENT && git fetch origin && git reset --hard origin/master && cd ..
-done
-cd ../../..
-
-cd vendor/Guzzle
-git fetch origin && git reset --hard origin/master
-cd ../..
Submodule Guzzle deleted from 17b9a7
Submodule BrowserKit deleted from f91ab7
Submodule ClassLoader deleted from cd1550
Submodule CssSelector deleted from dd695a
Submodule DomCrawler deleted from 9b4694
Submodule Finder deleted from 57ec71
Submodule Process deleted from 2e4da8

0 comments on commit 1cda47e

Please sign in to comment.