Closed SecondeJK closed 8 years ago
@SecondeJK Hello.
As in symfony3 console symlink now in bin
directory try to use it something like that
$ php bin/console assets:install web/
Does it works for you?
Hi @LogansUA
Afraid not. I'm running `php bin/console assets:install web/
From the top Symfony directory and its giving me the
`Fatal Error: Class 'AppKernel' not found in ..\bin\console on line 27
I suspect this may be something Composer related that's not right...?
@SecondeJK yeah i also think that this is composer issue, try to use some of this composer parameters.
Can you show me your composer.json
file?
I ran composer to include tinymcebundle, but it overwrote the composer.json. So I took the one require line for the package and added that to the original. composer.json looks like:
{
"name": "jimseconde/seconde-joop",
"license": "proprietary",
"type": "project",
"autoload": {
"psr-4": {
"": "src/"
},
"classmap": [
"app/AppKernel.php",
"app/AppCache.php"
]
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"require": {
"php": ">=5.5.9",
"symfony/symfony": "3.0.*",
"doctrine/orm": "^2.5",
"doctrine/doctrine-bundle": "^1.6",
"doctrine/doctrine-cache-bundle": "^1.2",
"symfony/swiftmailer-bundle": "^2.3",
"symfony/monolog-bundle": "^2.8",
"sensio/distribution-bundle": "^5.0",
"sensio/framework-extra-bundle": "^3.0.2",
"incenteev/composer-parameter-handler": "^2.0",
"stfalcon/tinymce-bundle": "2.0"
},
"require-dev": {
"sensio/generator-bundle": "^3.0",
"symfony/phpunit-bridge": "^3.0"
},
"scripts": {
"post-install-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
],
"post-update-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
]
},
"extra": {
"symfony-app-dir": "app",
"symfony-bin-dir": "bin",
"symfony-var-dir": "var",
"symfony-web-dir": "web",
"symfony-tests-dir": "tests",
"symfony-assets-install": "relative",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
}
}
}
Still no luck: don't know why the console can't find the AppKernel class.
Try this solution
Wiped repo, ran composer update. All sorted. Thanks.
@SecondeJK Thank you too for submitting issue, glad to help you :)
(A workaround for a noob would be most welcome here!)
In the Readme - installation of resources to /web/ is listed as
$ php app/console assets:install web/
Console can't find the AppKernel though, as it's running now from /bin/ on Symfony 3.0 rather than /app/
There's probably an easy solution but I'm new to Symfony, apologies.