Stellar Development with Symfony 4

1:14:58

Symfony 4 is out! And it's the best Symfony ever! Faster! Re-imagined developer experience! And easier to create the feature you need!

So let's start coding already!

  • Setup your new (tiny) Symfony app
  • PhpStorm setup for a killer experience
  • Flex & understanding recipes
  • Creating routes and controllers
  • The bin/console tool
  • Twig & templating
  • Crazy-good debugging with the web debug toolbar
  • JavaScript & Asset Setup
  • Our first API Endpoint!
  • An intro to.... services!

Upgrading to Symfony 4? See Upgrade to Symfony4 and Flex!


Your Guides

Ryan Weaver

Questions? Conversation?

  • 2018-10-22 weaverryan

    Hey Alain Holler!

    Ah, I don't think this is an error at all! Actually, this is great! You're seeing this message:

    > Some files may have been created or updated to configure your new packages. Please review, edit and commit them: these files are yours.

    This is the "recipe" system in action :). You can learn all about that very important system in this chapter: https://symfonycasts.com/sc...

    I hope that helps!

    Cheers!

  • 2018-10-22 Vladimir Sadicov

    Hey Alain Holler

    Unfortunately I cannot reproduce your error, I'm on Windows too, maybe you can give us more details about it?
    By the way try to run "composer install" or "composer update" and after retry to require server

    I hope this helps.

    Cheers!

  • 2018-10-22 Alain Holler

    Hi, I have a problem.

    I don't know what these lines mean:
    "Some files may have been created or updated to configure your new
    packages. Please review, edit and commit them: these files are yours."

    I typed in "composer require server" just according to the second video of this tutorial.

    Can u help me? I'd greatly appreciate it, since it's very important for my study.
    Please explain easy.

    I use Windows.

  • 2018-09-25 weaverryan

    Hey JLChafardet!

    Thanks for the nice comments - it really means a lot :).

    > I know I can access the request->request->get method, I was wondering if there was a way to make it less crumble-some,
    > using the $form-> handleRequest and $form->getData

    Ok, well, I lied a little bit. Because you don't like the $form->submit(), I'll tell you a bit more ;). You totally CAN use $form->handleRequest(). The downside is that this expects you to have "namespaced" name attributes on your fields - e.g. input type="product[name]". Honestly, I'm not sure if there's a way to configure your form to "get around" this and allow this to be removed :/. But, if you don't mind, then you CAN use handleRequest(). Oh, and in ALL cases, after you call handleRequest() or submit(), you can still totally call $form->getData() to get your data (which will be an object or an array, depending on how your form is setup).

    Let me know if this if your form works out the way you like it!

    Cheers!

  • 2018-09-20 JLChafardet

    I'm glad youve been keeping busy and improving the site! hope its success grows exponentially now, its indeed by all means a great resource site for those wanting to learn! I've learnt a lot from it and benefited much, I'm certain thousands of others would feel the same, congrats!

    I'll take a look! and experiment a bit, I know I can access the request->request->get method, I was wondering if there was a way to make it less crumble-some, using the $form->handleRequest and $form->getData but if not not a problem haha

  • 2018-09-20 weaverryan

    Hey JLChafardet!

    Nice to hear from you again! We're keeping busy as you've noticed ;). But, we're super excited - thanks for the nice words :).

    Interesting question. And yea, totally! It's quite easy :). Here's basically what you do:

    A) Create your form - and name your fields however you want.
    B) Your controller code (for processing the submit) will look a little bit different. Instead of using $form->handleRequest(), you'll fetch the data manually and use a different method. Something like this:


    public function newThing(Request $request)
    {
    if ($request->isMethod('POST')) {
    $form = $this->createForm(...);
    $form->submit([
    // here, manually pass all the data you need - they keys should match up with the fields you added to your form class
    // you could also cheat and use $request->request->all() to get all POST fields
    'firstName' => $request->request->get('firstName'),
    ]);

    if (!$form->isValid()) {
    // this is probably the trickiest part. $form->getErrors() will return a FormErrorIterator object (an object you can foreach over)
    // that contains 0 to many FormError objects. You need to process these (more on that below) and render the error in the template
    }
    }
    }

    So, it's pretty simple - just pass the data you want to $form->submit(). The tricky part is handling the errors. I started to talk about that above. The tricky thing is that $form->getErrors() does not return what you expect. I would expect an associative array of all of the errors on the form - where the key matches the name of each field. But actually, you need to collect the errors with code like this: https://gist.github.com/wea... - because each field is is own Form object. It's... a bit confusing I admit :).

    Oh, also don't forget to handle CSRF protection. By default, you form objects will expect it. An easy way to handle this is to set a csrf_token_id option on your form class - e.g. to "my_cool_form". Then, render a hidden field manually with:


    <input type="hidden" name="_token" value="{{ csrf_token('my_cool_form') }}" />

    Then you will be rendering the CSRF token that the form is expecting.

    Phew! I hope this helps! Cheers!

  • 2018-09-19 Diego Aguiar

    Hey JLChafardet

    You are correct :) once you understand how Symfony works, then you can do your work "x" times faster and better
    Oh, and you can speed up the learning curve if you follow up our tutorials ;)

    Cheers!

  • 2018-09-19 JLChafardet

    Symfony is an amazing framework, its entirely worth investing your time into learning it! the learning curve can be a bit step, but once you get the hang of it, it turns into the easiest and most fun framework to work with ever.

  • 2018-09-19 JLChafardet

    hey weaverryan its been a while! how are things going? I'm really glad for the changes in the community and the current direct line of communication and work with symfony, you are doing a great job and I hope things keep getting better.

    I have a question, is there any way to process forms "without" rendering forms using the component? what I mean is, get my own form, yet get it processed by the component.

    instead of defining the fields in the controller/form template, I just render my personalized, stylized form, and when processing the post, use the form component to either validate and or process it?

  • 2018-09-19 Victor Bocharsky

    Hey Kribo,

    You can ask related questions in comments section below a video that relates to your question.

    You can also ask questions by contacting us via email, here's our contact form: https://symfonycasts.com/co...

    If you have any suggestions, we do have a suggestion box too, look for "Ideas or Feedback?" button in the right bottom corner of each page.

    I hope this helps.

    Cheers!

  • 2018-09-18 kribo

    OK I got a question for knp uni in general...
    -- Where do we ask general questions -- non tutorial questions -- Is there a Q&A section on the website I haven't found yet ?---
    Questions like .... eeeu ... oyeah .. How do we earn Sensiolab badges? for ex.

    Where's the knp uni suggestion box ??

  • 2018-07-12 Victor Bocharsky

    Hey ssdk86 ,

    Not yet, but we have it on our TODO list, so we'll release it soon anyway, but I don't have any estimations yet, because right now we're releasing ReactJS course. You can follow the progress on the course overview page: https://knpuniversity.com/s... - you can subscribe for notifications and we'll email you when it is started releasing. If you don't want to wait, you can check our security tutorial for Symfony 3 project: https://knpuniversity.com/s... - if you have any problems applying it on Symfony 4 - just leave a comment below the video and we'll help you to figure out the problem.

    Cheers!

  • 2018-07-11 ssdk86

    find replay in order comments))

  • 2018-07-11 ssdk86

    Hello!
    have you a lesson with create symfony 4 authentication page?

  • 2018-07-06 Victor Bocharsky

    Hey cybernet2u ,

    Sure, we're going to release a screencast about it soon, but unfortunately I have no any estimations. We're going to release a few more screencasts before this one, right now we're working hard on ReactJS tutorial. Meanwhile, you can check our Security tutorial from the Symfony 3 track: https://knpuniversity.com/s... - you know, there're some differences in installation process (thanks to Symfony Flex), etc, but the main idea is the same in Symfony 4. But if you get some issues - let us know in comments and we'll try to help you figuring it our for Symfony 4 project.

    Cheers!

  • 2018-07-06 cybernet2u

    can you include Symfony Security ? login ... registration

  • 2018-06-11 Victor Bocharsky

    Heuy Annunaki,

    What languages do you mean? PHP, JS, Twig? If you're taking about Symfony translation files, here's the docs how to create them: https://symfony.com/doc/cur... - you can use XLIFF, Yaml or PHP for translations.

    Btw, we're going to release another course about translations, it should be soon, in a month or two I think.

    Cheers!

  • 2018-06-10 Annunaki “Brokhael” Skywalker

    I have some questions about how to implement language files (I mean those files that have the same messages but in different languages, i thik is like {{ "MyText"|trans }})

  • 2018-06-04 weaverryan

    Hey Ameer Abdulaziz!

    Yea, the pricing stuff is hard :p. We thought about this, but typically, you would only need to buy 2-3 courses before getting a subscription for 1 month is cheaper (and then you get everything). So, that's what we usually recommend. You can download the videos as well (you need to download them individually for each chapter, right now, but it's possible) if you want to review them later. Or, you always have the script + code blocks free below the video, if you want to reference something quickly but you're after your 1 month.

    I hope that makes sense - we hope it gives the cheapest option for people that want it, and keeps things simple.

    Cheers!

  • 2018-06-03 Ameer Abdulaziz

    Hello! I have a suggestion to add a feature that allows learners to buy access to the whole track beside buying each course on the same track individual. Of course, I mean making a discount for the whole track :)

  • 2018-05-24 Victor Bocharsky

    Hey Josiah,

    Actually, Symfony is one of the easiest app for deploying. But yeah, agree, docs are bad on this topic, and probably it's due to many various tools which handle deploying job. So, framework is more about developing, not deploying. And if you want to deploy it in the right cool way - you need to learn another tool which will help you. And actually we're talking about such tool at KnpUniversity - it's called Ansistrano, see this tutorial: https://knpuniversity.com/s... . It's based on the power of Ansible, but it's not too required to know it if you want to start with Ansistrano. Anyway, you can start and learn by doing, Ansistrano and Ansible are pretty straightforward. But in case you're wondering to know more about Ansible, we have a screencast about it too: https://knpuniversity.com/s...

    Cheers!

  • 2018-05-23 Josiah

    Awesome videos! Something lacking from the documents and in this is only the deploying to production. I don't understand why the documents are so shallow on this and even google doesn't have much either... There's nothing worse than making an awesome app that you can't deploy... very demotivating...

  • 2018-04-17 Victor Bocharsky

    Hey Gerver,

    It's a complex question, and the answer depends. Well, refactoring is always a pain, but migrating from one framework to another is much painful. Are you actively developing the project? Working on new features? If not, then it probably would be a bit easier to migrate your project to Symfony, you can actively start migrating it and when you're done - you will just replace the old project with the new one. But if you're actively coding new features on your current project - that's much difficult, because you will need to code that feature in both projects. There're a few tricks, you can start sharing services (that actually are just PHP classes) between projects, then you'll need to teach your autoloaders load those classes and write only configuration, its implementation probably remains the same, especially if you're using a lot of Symfony components in your project. If not, then it's a good idea to start using more and more Symfony components and refactoring your custom implementation in favor of Symfony components first - it'll help you migrating easier. Then, just postpone to write *everything* in Symfony way, i.e. keep hardcoded HTML forms, do not use Doctrine ORM, keep plain queries with PDO, etc. When you finish migrating to Symfony, it would be easier to refactoring these things to Symfony Forms, Doctrine ORM, etc - you can start with simple forms, start using ORM for simple entities that have no or little relations to others. But there's no simple solution, anyway you'll need to do a lot of work, but probably the main task is do not messed it up and do not get lost in refactoring. And of course, write a lot of tests! Test everything, and discover broken tests on the first stage.

    I hope this helps.

    Cheers!

  • 2018-04-16 Gerver

    Greetings KnpUniversity,

    After finishing this course, I've been stuck with the thoughts of possible ways i could approach a flat php project, in order to convert this to a Symfony 4 project. There for I have a question.. I have been searching for awhile now and I haven't quite found a best approach that's actualy up to date with Symfony 4 but:

    What would be the best recomendations/approach towards migrating a [big] flat PHP project (5.6) to Symfony 4? (Steps i should consider/ or a point in the direction)
    (In this project: has a login feature, in work with XPath to return te correct url(or functions) which the user has permission to use or access) It is a pretty big project en require quite some js files and other pages to work as a whole.

    Not sure if i'm allowed to ask this question here but, maybe others would also like to know a general approach towards such task or steps they should consider.

    Kind regards,
    Gerver

  • 2018-04-09 Diego Aguiar

    Hey Mark Railton

    Have you tried this bundle? LiipFunctionalTestBundle, it allows you to use SQLite for your testing environment (besides other things like running fixtures). I believe it can help you through your problem

    Oh, and we have a tutorial about TDD in case you are interested: https://knpuniversity.com/s...

    Cheers!

  • 2018-04-06 Mark Railton

    Never even noticed that line before.

    That puts me in a really tough place then with regards to testing, I use CodeShip for my CI and the DB details are passed as vars, but in symfony 4 the db is connected via dsn, not sure how I can pull that through then

  • 2018-04-06 Victor Bocharsky

    Hey Mark,

    Hm, that's a bit pointless, since migrations are written for a specific SQL server like MySQL, SQLite, etc. That's why you can see this line in migration:
    $this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');

    So if you use MySQL in production but SQLite for testing - you probably won't be able to do so. But if you use the same environment - great, then you can easily run migrations instead of creating an empty schema on your CI server and if it passes - then probably everything is OK (at least you don't have any syntax errors, maybe just logical ones :) ). So the idea is that you may make running migrations as a part of your CI when building your project.

    I hope this helps

    Cheers!

  • 2018-04-05 Mark Railton

    Hey weaverryan, sorry for taking so long to get back. The main issue im having is that I want to use an in memory sqlite db for testing. I need to figure out how I can run my doctrine migrations as part of the tests.

  • 2018-03-16 Diego Aguiar

    Phew! I'm super happy to hear that
    If you ever have this problem again, don't hesitate to contact us

    Cheers!

  • 2018-03-16 Davide Valguarnera

    Diego Aguiar It seems it was actually temporary, cause today after login today videos started playing correctly.

  • 2018-03-15 Diego Aguiar

    Hey Davide Valguarnera

    Don't worry about the italian text, I can get a bit of italian :) (because I'm a spanish speaker)

    This is very interesting, I'm using the same OS and browser than you, and I don't get any errors...
    Do you have problems watching videos in any other sites? maybe a video directly from Vimeo's
    Can you try opening this video: https://player.vimeo.com/ex...

    I was hoping that it was a temporary problem from Vimeo, but you are having this problem today too, right?

  • 2018-03-15 Davide Valguarnera

    Thanks for yours quick answers Diego Aguiar Leanna Pelham

    player on firefox : https://i.imgur.com/vyOW4S0...

    player on chrome : https://i.imgur.com/txYZRZ8...

    dev console screen : https://i.imgur.com/LcEMJGH...

    Dev console text :

    Il caricamento HTTP non è riuscito con stato 403. Impossibile completare il caricamento della risorsa multimediale https://player.vimeo.com/ex.... micro-app-phpstorm

    (italian text cause italian browser, I guess you can easely understand is a 403 http error from vimeo player)

    Object { code: 4, message: "The media could not be loaded, either because the server or network failed or because the format is not supported." }

    VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) The media could not be loaded, either because the server or network failed or because the format is not supported. video-4659f5f72fd827496a39.js:1:20993

    L’utilizzo di getPreventDefault() è deprecato. Al suo posto utilizzare defaultPrevented.

    (and the typical preventdefault warning)

    That's all there is in my console (I tried also to disable uBlock thinking it could be related to ads before video but nope)

  • 2018-03-15 Diego Aguiar

    Hey Davide Valguarnera

    Could you tell us if you can see any other error messages? (maybe in the developer's console tab)

    I'm on Windows 7 + Firefox too, and I can't reproduce that behaviour. Do you have the latest version of Firefox installed? or maybe you have a weird extension installed causing connectivity problems?

    Could you try to watch our videos in any other browser, just to be sure that is something related to Firefox. Thanks!

    Cheers!

  • 2018-03-14 Davide Valguarnera

    All videos, window 7 64bit, firefox quantum

  • 2018-03-14 Leanna Pelham

    Hey Davide Valguarnera ! Hmm I'm not getting that same error, can you send me some additional details on: (a) which specific video are you having trouble watching and (b) browser/operating system you're running?

  • 2018-03-14 Davide Valguarnera

    "The media could not be loaded", are there problems with videos files?

  • 2018-03-12 Joseph

    thank your information so much i will be waiting next course

  • 2018-03-12 Victor Bocharsky

    Hey Joseph,

    Ah, OK. If we're talking about Symfony, then probably we want to do it with Doctrine. We're working on this course: https://knpuniversity.com/s... - it will be next in the Symfony 4 track. And I think we'll completely implement this feature in future tutorials. But for now, I probably can give you a few quick tips.

    It depends on different implementations, but first of all, I think you need to track *who* exactly liked an article and *what* exactly article was liked. That's why we need a many-to-many relation between user and post which will give us an intermediate table, e.g. "user_article" that will have 2 columns user_id and article_id. With this workflow we'll be able to control the process and do not allow user like the an article twice or dislike an article which he has not liked yet. But thanks to Doctrine, we don't need to create this table manually, we just need to configure many-to-many relation between User and Article entities. It'd be difficult to explain all of this in the comment, but if you can't wait for this new Symfony 4 Doctrine course, I can advise you to look at Doctrine course from our Symfony 3 track. But, depends on your current knowledges, you probably need to look over a few tutorials to implement this like/dislike correctly:
    https://knpuniversity.com/s...
    https://knpuniversity.com/s...
    https://knpuniversity.com/s...

    In the 1st we explain Doctrine in general, in the 2nd we explain relations, but many-to-many relation which we need here is explained in the 3rd one. So yeah, it's kind of complex feature if you don't know Doctrine and how to configure many-to-many relation. But I think you got the idea of how it should be implemented.

    Cheers!

  • 2018-03-09 Joseph

    yes thank you for information but i dont know how can i connect it to database

    2018-03-09 12:20 GMT+03:00 Disqus <notifications@disqus.net>:

  • 2018-03-09 Victor Bocharsky

    Yo Joseph,

    What do you mean? Do you want to implement like/dislike feature? In this case you can take a look at https://knpuniversity.com/s... where we're implementing exactly the same feature.

    Cheers!

  • 2018-03-09 Joseph

    how can i make like-dislike button with symfony?

  • 2018-02-27 Diego Aguiar

    Hey Blade Ravinger

    Once a new course is released we deliver a new chapter every day for that course. Right now we are focused on our tutorial about "Webpack Encore" https://knpuniversity.com/s...

    Cheers!

  • 2018-02-27 Blade Ravinger

    sorry to be that guy, but how often are updates released here? i have a hard time reading the documentation and the video tutorial is really helping.
    thanks Blade

  • 2018-02-23 Eduardo Guglielmotti

    Ok thank you, I try it and then I comment the results

  • 2018-02-23 Diego Aguiar

    Yes, you can install it with composer, but I believe it won't come with a recipe, so if that's the case you will have to configure it as you would do it in Symfony3, actually we have a video teaching how to handle bundles that does not have a recipe yet: https://knpuniversity.com/s...

    I hope it helps :). Cheers!

  • 2018-02-22 Eduardo Guglielmotti

    I have looked at the link you sent me but I do not clarify much
    Is it installed with composer like in Symfony 3? or you have to do something special, because that I have not seen

    regards

  • 2018-02-21 Diego Aguiar

    Hey Eduardo Guglielmotti

    Nice question! Actually I had to do some research and I found that they added support for Symfony 4 since last year! https://github.com/KnpLabs/...

    Cheers!

  • 2018-02-21 Eduardo Guglielmotti

    KnpPaginatorBundle is compatible to use in Symfony 4?

  • 2018-02-19 Eduardo Guglielmotti

    ok thanks

  • 2018-02-19 Victor Bocharsky

    Hey Eduardo,

    Symfony skeleton requires PHP 7.1.3, probably your version was <7.1.3. Anyways, glad you got it installed!

    P.S. Thanks for the tip niumis ;)

    Cheers!

  • 2018-02-19 Eduardo Guglielmotti

    That does not work, but it had php 7.1, update to 7.2 and everything worked ok
    Thanks and greeting

  • 2018-02-19 niumis

    Hello Eduardo Guglielmotti,

    You can add a version number after symfony/skeleton like this:
    composer create-project symfony/skeleton:^4.0 my_project
    :)

  • 2018-02-17 Eduardo Guglielmotti

    Hello
    So now I have been working with symfony 3.3
    Try to follow the instructions to install symfony 4 with composer but install symfony 3.4.6
    How can I achieve it?

  • 2018-02-16 Victor Bocharsky

    Hey Vince,

    Haha, well, all the code which is tested on that website are open-source, so you can check what exactly is tested on GitHub ;)

    Thanks for the kind words about KnpU! They make us moving forward and release more awesome content :)

    Cheers!

  • 2018-02-16 Vince Liem

    Pffft not so sure if http://www.phpbenchmarks.com is completely unbiased. The creator of that site has a github that is very affiliated with Symfony. But nonetheless, EVEN IF symfony's performance benchmark is questionable. Your courses will undoubtedly score gold medals in every aspect including helpful, educational and entertaining. Keep it up! <3 knp University.

  • 2018-01-29 weaverryan

    Hey Vasyl Hebrian!

    Haha, WOW! Let me see if I can help :). And I think your English is great, btw. Let me start with your questions directly:

    > It's possible to create daemon using symfony Command and run tasks as Process?

    Yep, this is possible... but you need some help :). Here's what you can do, and we do something like this here on KnpU: create one command that runs in a loop, and looks for any tasks that need to run. In theory, this task could run forever - as nothing will ever make it stop. But of course, in practice, because of memory leaks and other possible weird stuff, it will *not* run forever. So, use supervisord to guarantee that this process is *always* run. And to answer one of your other questions, you could make supervisord guarantee that *three* processes are running at all time. If you had 10 tasks that needed to run, each would find one, finish their work, then move on to the other 7. You just need to avoid race conditions: as *soon* as you find a task that needs to be run, you need to make a fast query to update it as "running" so one of the other tasks will not also find it. To actually run your tasks, yea, the Process component is awesome (and again, we use it ALL the time on KnpU). Each command will just run one process (but you will have 3 commands running).

    > How to save information about task and create new one after the process done?

    I'm not sure about this question. You'll be inside your Command, sone when the Symfony process finishes that executes the task, you will be able to record whatever information you want back to the database. Getting information about how many *database* queries that external process ran is a bit more difficult, however. That most straightforward (but not fancy) way is to make the task itself return some metadata to stdout, and then you read it from your Process object. But, you might be able to think of a more clever way.

    I hope this helps! It sounds interesting!

    Cheers!

  • 2018-01-25 Diego Aguiar

    Hey dojovader

    Yeah, the Compiler Pass is kind of dificult to understand at first sight, maybe our tutorial about Symfony's dependency injection may help you understand it a bit more: https://knpuniversity.com/s... also you can check the documentation: https://symfony.com/doc/cur...
    or you could check how other bundles use it.

    Have a nice day :)

  • 2018-01-25 dojovader

    Thanks I am already, The only thing i find very complicated to understand, is the Compiler Passes, am sure a few more reads needed.

  • 2018-01-25 Victor Bocharsky

    Hey dojovader ,

    Btw, if you want go even deeper, you can look at "Go Deep" section of Symfony 3 track: https://knpuniversity.com/t... . Well, those screencasts are based on Symfony 3, but many concepts remain the same.

    Cheers!

  • 2018-01-25 dojovader

    So glad, always wanted to learn Symfony indepth. will go over this

  • 2018-01-24 Vasyl Hebrian

    It's awesome! Thanx you guys! Waiting for next courses

    Have a question about Symfony:
    I need to create some "super feature", for running tasks in background.
    App has a lot of console commands, and I want to manage it in admin-panel. For example, there would be tasks, that runs every days, every hour or just once a month.
    In admin-panel shoud be detailed information about tasks wich planning to run, completed, waiting. Or tasks in action, done with errors.
    Also, after complete, every task create new (the same) task, for next execution (for example, if it runs every hour)
    Can see, what was command execution time, when did command start, how many DB queries was executed, when commnad planning to execute next time etc.
    Can do it using crontab, but it's boring and hard to manage.
    I already done some features in admin panel, and now it possible to create tasks, planning it, see status and information about execution.

    But I have a lot of questions about how to run it:
    It's possible to create daemon using symfony Command and run tasks as Process? How manage number of threads?
    For example, if there 10 tasks for run at this momment, run just 3, and when one of them done, run another one from that 7. How to save information about task and create new one after the process done?

    Could you advise me some articles for read?

    P.S. Sorry for grammatical mistakes, if it helps, I can write to Victor Bocharsky in ukrainian :)

  • 2018-01-23 weaverryan

    Yo Salim RG!

    Actually, I might be able to help with this. For a short time - I think symfony/flex version 1.0.64 - alias were broken! That has now been fixed. Try running:


    composer update

    That will download the new Flex version. And *then* aliases should work again. Silly bugs :)

    Cheers!

  • 2018-01-23 Diego Aguiar

    Hey Salim RG

    I do see that that alias exist: https://symfony.sh/ (search for server)
    Maybe you need to update your composer, or maybe it was a temporary error?

    Let us know if the problem continuous. Cheers!

  • 2018-01-23 Salim RG

    Thanks for reply,

    Basically it says "package not found" it was working before but now i cant install webserver using: compose req --dev server i need to put now: compose require symfony/web-server-bundle . do you know why?

  • 2018-01-22 Victor Bocharsky

    Hey Salim RG ,

    Really have no idea, it's difficult to say without seeing any errors :) What exactly does not work? The command fails or you are not able to launch the server? Do you have some errors in your console output? Please, provide a bit more info so we are able to help you.

    Cheers!

  • 2018-01-20 Salim RG

    now when i type composer req --dev server it doesnt work, anyone knows why?

  • 2018-01-19 Victor Bocharsky

    Hey Aamir,

    Nothing much were changed in Symfony Form, so you can start with our Symfony 3 Forms course: https://knpuniversity.com/s... and if you have any problems - just leave us a comment below the video and we'll help you. Of course, you need to require symfony/form component with Composer at first since Symfony 4 is small and don't have this dependency by default.

    Cheers!

  • 2018-01-19 Aamir

    weaverryan Thank you for the symfony4 tutorial. It's awesome. Can you please add a video on how to use forms in symfony4. Thank you.

  • 2018-01-09 Mohammed Zayan

    I fall in love with Symfony

  • 2018-01-09 weaverryan

    Hey Mark Railton!

    We won't cover testing in *this* tutorial specifically. But, what issues are you having? How can we help? One gotcha currently (I say currently because I would very much like to change it) is that in phpunit, the environment variables are read from phpunit.xml.dist instead of .env (.env is not read at all). Mentioning that because... it could be your issue ;).

    Cheers!

  • 2018-01-09 Mark Railton

    Are there any plans on adding testing to this course? I've already started playing with Sumfony4 and am loving it, but having issues with testing and DB

  • 2018-01-09 Victor Bocharsky

    Hey John,

    As you can see this course is been already releasing right now: 2 chapters were already published recently. So we're going to release it completely in a few weeks, but new chapters will be published one by one during this time.

    Cheers!

  • 2018-01-09 John

    when can we expect this course

  • 2017-12-19 Алексей Колесников

    Great!

  • 2017-12-14 weaverryan

    Hey Knayz!

    A forum-style is a great idea. We actually *are* going to have something like that... and a lot more :). We'll build on project through multiple different courses, and it will eventually have Doctrine, forms, frontend-framework (probably React), API, caching, security and a lot more. It's going to be awesome! Work starting soon...

    Cheers!

  • 2017-12-13 Knayz

    Hi, Ryan. Maybe you are planning course only hard practice. I mean something like laracast cource about building forum. There are much problems which encounter every web developer. It will be great if you'll show to mix sf with any js framework React maybe and maybe popular library like WYSIWIG