symfony - installing aws API on symfony2 -
i working on project under symfony 2.1 need install , use aws api (for using cloud php/curl). follow these insctructions choose composer installing sdk ('cause symfony use composer).
the download of sources file have worked, , in vendor directory got aws sources. in code source, classes of amazon returns error ("fatal error : class [...] not found [...]"
so think problem comes symfony dont load sources files. try search on internet, , try find way alone (looking on files etc ...)
but didnt find way load sources files. try add on appkernerl build directory of sdk. nothing happens. try require_once file named (phar-stub.php, in build directory). error show up.
can me please,
you may use symfony2 bundle wraps offical aws sdk - https://github.com/seferov/aws-bundle
after configuring bundle, can call aws clients simple this:
// ... public function indexaction() { $ec2 = $this->get('aws.ec2'); // ... }
Comments
Post a Comment