ezimuel / apigility-symfony2-use-case Goto Github PK
View Code? Open in Web Editor NEWCreate a RESTful API for a Symfony2 project using Apigility (http://apigility.org)
Create a RESTful API for a Symfony2 project using Apigility (http://apigility.org)
I am accessing the http://apigility.local/post
where I have successfully added the ApiBlog module from this repository.
and added Symfony application. file into PostResource.php
under the __construct method as bellow
public function __construct()
{
$symfonyApp = '/home/vallabh/www/symfony2app';
require_once $symfonyApp . '/app/AppKernel.php';
$kernel = new \AppKernel('prod', true);
$kernel->loadClassCache();
$kernel->boot();
$this->doctrine = $kernel->getContainer()
->get('doctrine')
->getManager();
}
But still error showing.
I have tested that AppKernel.php is successfully called into the __construct but while accessing the
api get request http://apigility.local/post
thowring the errors as bellow.
Fatal error: Class 'Symfony\Component\HttpKernel\Kernel' not found in /home/vallabh/www/symfony2app/app/AppKernel.php on line 7
When composer.phar install apigilityapi project one gets:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for zfcampus/zf-apigility dev-master -> satisfiable by zfcampus/zf-apigility[dev-master].
- zfcampus/zf-apigility dev-master requires rwoverdijk/assetmanager ~1.3 -> no matching package found.
Problem 2
- Installation request for zfcampus/zf-apigility-admin dev-master -> satisfiable by zfcampus/zf-apigility-admin[dev-master].
- zfcampus/zf-apigility-admin dev-master requires rwoverdijk/assetmanager ~1.3 -> no matching package found.
thx
every time when I open apigility's admin, an error shows up:
An error occurred
An error occurred during execution; please try again later.
hey @ezimuel I just noticed the mention and wanted to say thanks! :) keep rocking with apigility!
These commands don't work even with correct database credentials set in parameters.yml
php app/console doctrine:database:create
php app/console doctrine:schema:update --force
No error message, no action, nothing created in database. As a result of this, browsing to home folder or /post results in a blank page.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.