I just took a project from a couple of months ago which was made in Laravel. This project also utilizes Laravel Voyager - the admin panel package.
After browsing to http://example.com/admin, I got this weird error which came out of nowhere and I'm…
I'm using symfony serializer. But if I install composer packages with --no-dev flag, it deserializes data that supposed to be array of objects in array of arrays instead.
This is serialization:
$result = $this->get('serializer')->deserialize(
…
I need configure default lifetime from cache Adapter, but something weird has been happening, the follows don't works!? :/
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
// in seconds; applied to cache items that don't define their own…
I have the following code;
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add(
$builder->create(
'href',
'url',
$this->getOptionsForUrlWidget('Website…
I need to create a console command for a Symfony2 application and I read docs here and here though I am not sure what of those I should follow. So this is what I did.
Create a file under /src/PDI/PDOneBundle/Console/PDOneSyncCommand.php
Write this…
I've a Sso authentication on my portal, which bypass the login form if a specific header is present into the request.
When I try to impersonnate a user, the Symfony's Context Listener find the user and load it into security context, then my Sso…
I am writting a console application with Symfony2 components, and I want to add distinct logging channels for my services, my commands and so on. The problem: to create a new channel requires to create a new instance of Monolog, and I don't really…
I have recently had to to reinstall XP since doing so I am unable to get composer to install laravel it fails at "-Installing symfony/finder (v2.4.4)" and I get an error exception
"ZipArchive::extractTo(): File exists" I have tried to install…
I am using routing component to load controllers, and if i use just
$routes->add(
'index',
new Route('/', array('_controller' => 'indexAction'))
);
my "project" perfectly loads indexAction function, but if i try something like…
I'm using Goutte to get a page on a web server using an SSL certificate. Whenever I try to get this page the the following exception is thrown:
Uncaught exception 'Guzzle\\Http\\Exception\\CurlException' with message
'[curl] 35: error:1407742E:SSL…
There is a one-to-one relationship between User and Company entity.
When initializing (creating) the user's company, userID should be bind to Company user field as a foreign key. But instead of that, i get this error message:
Property "id" is not…
I'm trying to use Symfony's Security component that is incorporated in Silex PHP framework. Unfortunately, I can't get anywhere with Silex documentation since it only lists some requirements, not giving any full working example.
There is a list of…
This is the same question asked here: Symfony2 standalone form component - setting up a form. The answer to this question seems to fully address the issue.
Unfortunately back when this question was asked the version of the form component was 2.0.x,…