Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 500 Bytes

UPGRADE-2.0.md

File metadata and controls

23 lines (18 loc) · 500 Bytes

UPGRADE FROM 1.x to 2.0

  • Removed annotations in favor of attributes. Migration should be straightforward, here's a quick example:

Before:

use SlopeIt\BreadcrumbBundle\Annotation\Breadcrumb;

/**
 * @Breadcrumb({
 *   { "label" = "home", "route" = "home_route" },
 * })
 */
class CoolController extends Controller

After:

use SlopeIt\BreadcrumbBundle\Attribute\Breadcrumb;

#[Breadcrumb(['label' => 'home', 'route' => 'home_route'])]
class CoolController extends Controller