php - Symfony 2.3 Adding Google API -
i used before symfony2 , google api integration
i had question this, when use classmap in compser.json able google_client class, unable use other classes.
for example want use goole_youtubeservice
. have...
$client = new \google_client(); $youtube = new \google_youtubeservice($client);
when code recognizes google_client()
, cannot find google_youtubeservice()
.
am missing work?
this composer.json
{ "name": "symfony/framework-standard-edition", "description": "the \"symfony standard edition\" distribution", "autoload": { "psr-0": { "": "src/" }, "classmap": ["vendor/google/google-api-php-client/src","vendor/google/google-api-php-client/src/contrib"] }, "require": { "php": ">=5.3.3", "symfony/symfony": "2.3.*", "doctrine/orm": "~2.2,>=2.2.3", "doctrine/doctrine-bundle": "1.2.*", "twig/extensions": "1.0.*", "symfony/assetic-bundle": "2.3.*", "symfony/swiftmailer-bundle": "2.3.*", "symfony/monolog-bundle": "2.3.*", "sensio/distribution-bundle": "2.3.*", "sensio/framework-extra-bundle": "2.3.*", "sensio/generator-bundle": "2.3.*", "google/google-api-php-client": "1.0.0" }, "require-dev": { "phpunit/phpunit": "3.7.*", "phake/phake": "1.*" }, "scripts": { "post-install-cmd": [ "sensio\\bundle\\distributionbundle\\composer\\scripthandler::buildbootstrap", "sensio\\bundle\\distributionbundle\\composer\\scripthandler::clearcache", "sensio\\bundle\\distributionbundle\\composer\\scripthandler::installassets", "sensio\\bundle\\distributionbundle\\composer\\scripthandler::installrequirementsfile" ], "post-update-cmd": [ "sensio\\bundle\\distributionbundle\\composer\\scripthandler::buildbootstrap", "sensio\\bundle\\distributionbundle\\composer\\scripthandler::clearcache", "sensio\\bundle\\distributionbundle\\composer\\scripthandler::installassets", "sensio\\bundle\\distributionbundle\\composer\\scripthandler::installrequirementsfile" ] }, "config": { "bin-dir": "bin" }, "minimum-stability": "alpha", "extra": { "symfony-app-dir": "app", "symfony-web-dir": "web", "branch-alias": { "dev-master": "2.2-dev" } }, "repositories": [ { "type": "package", "package": { "name": "google/google-api-php-client", "version": "1.0.0", "source": { "type": "svn", "url": "http://google-api-php-client.googlecode.com/svn", "reference": "trunk" } } } ] }
try google_youtubeservice - uppercase youtube - work
Comments
Post a Comment