gregurco / jobeet Goto Github PK
View Code? Open in Web Editor NEWSymfony 4.2 Jobeet Project
Home Page: https://jobeet-tutorial.rtfd.io
Symfony 4.2 Jobeet Project
Home Page: https://jobeet-tutorial.rtfd.io
When following the tutorial Symfony version is 4.2.12 and in day 11 when setting up a user in memory it should be:
providers:
users_in_memory:
memory:
users:
admin:
password: someStrongPassword
roles: 'ROLE_ADMIN'
Instead of:
providers:
in_memory:
memory:
users:
admin:
password: someStrongPassword
roles: 'ROLE_ADMIN'
composer install complains:
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 111 installs, 0 updates, 0 removals
- Installing ocramius/package-versions (1.3.0): Loading from cache
- Installing symfony/flex (v1.0.80): Downloading (100%)
Plugin installation failed, rolling back
- Removing symfony/flex (v1.0.80)
In ParallelDownloader.php line 255:
Declaration of Symfony\Flex\ParallelDownloader::getRemoteContents($originUrl, $fileUrl, $context) should be compatible with Composer\Util\RemoteFilesystem::getRemoteContents($originUrl, $fileUrl, $c
ontext, ?array &$responseHeaders = NULL)
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...
Something weird is happening :-/
is it meant for Jobeet Day 16: The Functional Tests ?
Hi! I moved forward on the tutorial and I am currently trying to render the form JobType.
The thing is... when I'm trying to see the result on job/create, it shows an exception at this line $form = $this->createForm(JobType::class, $job);
So, I have looked in the form and controller, seeing if I didn't miss any use or namespaces and and compared with your code and... it's not working.
The error says that
"choices" is not an option
However, when I'm going to the Symfony documentation, it is an option. I tried another way with a simple array after 'choices', but it didn't work.
Thanks in advance!
Hi!
It's me again!
This time, the form is displayed, except when you want to persist a new job offer.
The error says
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'token' cannot be null
I have checked the Job entity (token), same for token event listener, controller.
Hey, @hrapeichuk @gregurco I was covering JobUploadListener
with unit tests and notices that the call to JobUploadListener::fileToString
does not really seem necessary here since JobUploadListener::uploadFile
will convert the file to string anyway.
private function uploadFile($entity)
{
// upload only works for Job entities
if (!$entity instanceof Job) {
return;
}
$logoFile = $entity->getLogo();
// only upload new files
if ($logoFile instanceof UploadedFile) {
$fileName = $this->uploader->upload($logoFile);
$entity->setLogo($fileName);
}
}
Let me know what you think, and I can adjust it with the test it self.
Steps to reproduce:
Twig_Error_Runtime:
Impossible to access an attribute ("id") on a null variable.
at templates/job/_job_history.html.twig:6
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.